public async Task <IHttpActionResult> Get(string phone) { try { var result = MemoryInfo.GetCustomersByPhone(phone); var res = new RequestErrorCode(true, null, null); res.DataResult = result; return(Ok(res)); } catch (Exception ex) { Logger.Write(ex.ToString()); } return(BadRequest("Unknow")); }