public HttpResponseMessage <Region> Edit(Region region, HttpRequestMessage <Region> request) { if (region != null) { var basecampDb = regionRepository.Edit(region); var response = new HttpResponseMessage <Region>(basecampDb) { StatusCode = HttpStatusCode.Created }; return(response); } return(new HttpResponseMessage <Region>(null) { StatusCode = HttpStatusCode.NotFound, }); }
//public int UpdateManager(RegionUserRoleMapping RegionManager) //{ // return _regionRepository.AddUpdateManager(RegionManager); //} public int Edit(Region Region) { return(_regionRepository.Edit(Region)); }