refactoring
This commit is contained in:
parent
a430452bea
commit
91aa69f4bd
2 changed files with 3 additions and 3 deletions
|
|
@ -115,6 +115,7 @@ namespace Yavsc.ApiControllers
|
|||
))};
|
||||
}
|
||||
catch (Exception ex) {
|
||||
|
||||
return new HttpResponseMessage (HttpStatusCode.OK){ Content =
|
||||
new ObjectContent (typeof(string),
|
||||
ex.Message, new SimpleFormatter("text/text")) };
|
||||
|
|
@ -140,7 +141,7 @@ namespace Yavsc.ApiControllers
|
|||
tmpe.Session.Add ("estim", e);
|
||||
|
||||
Profile prpro = new Profile(ProfileBase.Create(e.Responsible));
|
||||
if (!prpro.IsBankable)
|
||||
if (!prpro.HasBankAccount)
|
||||
throw new TemplateException ("NotBankable:"+e.Responsible);
|
||||
|
||||
Profile prcli = new Profile(ProfileBase.Create(e.Client));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue