예제 #1
0
 public void Save(MasterLocationType data)
 {
     if (data.LocationTypeId == 0)
     {
         var institutionId = _securityService.GetCurrentInstitutionId();
         data.InstitutionId = institutionId;
     }
     _locationTypeRepository.Save(data);
     _locationTypeRepository.Commit();
 }
예제 #2
0
 public IHttpActionResult Delete(MasterLocationType data)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     try
     {
         _locationTypeService.Delete(data);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
예제 #3
0
 public void Delete(MasterLocationType data)
 {
     _locationTypeRepository.Delete(data);
     _locationTypeRepository.Commit();
 }