示例#1
0
        public async Task <HttpResponseMessage> FindByStatus(string status)
        {
            try
            {
                var response = Request.CreateResponse(HttpStatusCode.OK, await logic.GetAddressesByStatus(status));
                logger.Info("Get all addresses by status successful");
                return(response);
            }

            catch (Exception ex)
            {
                LogHelper.ErrorLogger(logger, ex);
                return(Request.CreateResponse(HttpStatusCode.BadRequest));
            }
        }