示例#1
0
 public IHttpActionResult Putmortgage(Mortgage mortgage)
 {
     bool result = this.mortgagesService.EditMortgage(mortgage);
     return Ok(result);
 }
示例#2
0
 public bool EditMortgage(Mortgage mortgage)
 {
     this.mortgageRepository.Update(mortgage);
     this.mortgageRepository.SaveChanges();
     return true;
 }
示例#3
0
 public IHttpActionResult Postmortgage(Mortgage mortgage)
 {
     string result = this.mortgagesService.CreateMortgage(mortgage);
     return Ok(result);
 }
示例#4
0
 public string CreateMortgage(Mortgage mortgage)
 {
     this.mortgageRepository.Add(mortgage);
     this.mortgageRepository.SaveChanges();
     return mortgage.UPI;
 }