Пример #1
0
 public HttpResponseMessage Contains([FromUri] string str = "")
 {
     try
     {
         Branches         bra         = BranchManager.Contains(Branch.Includes.Address, str);
         List <BranchDto> branchesDto = Converters.Convert(bra);
         return(Request.CreateResponse(HttpStatusCode.OK, branchesDto));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, $"Failed to search branch, {ex.Message}"));
     }
 }