public CartItem Add(CartItem dto) { logger.Info("Start to add new cateory"); try { return(cartItemBusiness.Save(dto)); } catch (Exception ex) { var httpError = new HttpResponseMessage() { StatusCode = (HttpStatusCode)422, ReasonPhrase = ex.Message }; throw new HttpResponseException(httpError); } }