Esempio n. 1
0
 public bool EditLandProperty(LandProperty landProperty)
 {
     this.landPropertyRepository.Update(landProperty);
     this.landPropertyRepository.SaveChanges();
     return true;
 }
Esempio n. 2
0
 public IHttpActionResult Put(LandProperty LandProperty)
 {
     bool result = this.landPropertiesService.EditLandProperty(LandProperty);
     return Ok(result);
 }
Esempio n. 3
0
 public string CreateLandProperty(LandProperty landProperty)
 {
     this.landPropertyRepository.Add(landProperty);
     this.landPropertyRepository.SaveChanges();
     return landProperty.UPI;
 }
Esempio n. 4
0
 public IHttpActionResult PostLandProperty(LandProperty LandProperty)
 {
     string result = this.landPropertiesService.CreateLandProperty(LandProperty);
     return Ok(result);
 }