Пример #1
0
        public string AddServices([FromBody] Models.Services service)
        {
            var status = "could not add services";

            try
            {
                EFModels.Vendorservices cartb = new EFModels.Vendorservices()
                {
                    Name     = service.Name,
                    Vendorid = service.Vendorid,
                    Price    = service.Price,
                };

                status = _VendorFacade.AddServices(cartb);
            }
            catch (Exception e)
            {
                status = e.Message;
                throw e;
            }
            return(status);
        }