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