Пример #1
0
 public async Task <IHttpActionResult> Get(string serviceFormId)
 {
     try
     {
         var lstSearch = MemoryInfo.GetListServiceFormByField(serviceFormId, ServiceForm.ServiceFormFields.ServiceFormId);
         var data      = lstSearch[0];
         if (data != null && data.IsDeleted == 1)
         {
             data = null;
         }
         var res = new RequestErrorCode(true, null, null);
         res.DataResult = data;
         return(Ok(res));
     }
     catch (Exception ex)
     {
         Logger.Write(ex.ToString());
     }
     return(BadRequest("Unknow"));
 }