Ejemplo n.º 1
0
 public Entity.BaseResponse <bool> UpdateStatus(string id, bool status)
 {
     Entity.BaseResponse <bool> response = new Entity.BaseResponse <bool>(true);
     try
     {
         Entity.ActionStatus result = _service.UpdateStatus(Guid.Parse(id), status);
         response.IsSuccess = result.Success;
         response.Message   = result.Message;
         response.Data      = result.Success;
     }
     catch (Exception ex)
     {
         base.LogException(ex);
         return(new Entity.BaseResponse <bool>(false, ex.Message));
     }
     return(response);
 }