* FrontOfficeApiController.cs: Checks that postal information is

present, before throwing exceptions at generation time

* BlogsController.cs: leaves CodeKicker.BBCode

* Web.csproj: Removes references to CodeKicker.BBCode

* Estim.cs: reflects changes on Estim.tt

* Estim.tt: ensures that billing information are correctly rendered,
  either using the IBAN/BIC or Account numbers methods.

* Profile.cs: adds an "HasPostalAddress" boolean property to the
  profile objects
This commit is contained in:
Paul Schneider
2015-06-06 01:06:38 +02:00
parent fc326a3092
commit f35e82d354
6 changed files with 336 additions and 221 deletions

View File

@ -188,6 +188,13 @@ namespace Yavsc.Model.RolesAndMembers
|| string.IsNullOrWhiteSpace (IBAN))
); } }
public bool HasPostalAddress {
get {
return !string.IsNullOrWhiteSpace (Address)
&& !string.IsNullOrWhiteSpace (CityAndState)
&& !string.IsNullOrWhiteSpace (ZipCode);
}
}
/// <summary>
/// Gets a value indicating whether this instance is billable.
/// Returns true when