Пример #1
0
        public IHttpActionResult CompleteRez(int id)
        {
            var content = new Response <RentDetail>();

            try
            {
                using (var rentDetailBusiness = new RentDetailBusiness())
                {
                    content = rentDetailBusiness.CompleteReservation(id);
                }
            }
            catch (Exception ex)
            {
                content.isSuccess = false;
                content.Message  += ex.Message;
            }
            return(new StandartResult <RentDetail>(content, Request));
        }
Пример #2
0
        public Response <RentDetail> CompleteReservation(int ReservationID)
        {
            Response <RentDetail> res = new Response <RentDetail>();

            try
            {
                using (var rentDetailBusiness = new RentDetailBusiness())
                {
                    res = rentDetailBusiness.CompleteReservation(ReservationID);
                }
            }
            catch (Exception ex)
            {
                res.isSuccess = false;
                res.Message   = "An error occured in CompleteReservation() func. in Spice-WebService.RentDetailService\n" + ex.Message;
            }
            return(res);
        }