Пример #1
0
 public async Task <IHttpActionResult> Get(string idContract)
 {
     try
     {
         var result = MemoryInfo.GetConnectionByContractId(idContract);
         var res    = new RequestErrorCode(true, null, null);
         res.DataResult = result;
         return(Ok(res));
     }
     catch (Exception ex)
     {
         Logger.Write(ex.ToString());
     }
     return(BadRequest("Unknow"));
 }