Beispiel #1
0
        public async Task <IHttpActionResult> AddProviderService(tbl_ProviderService item)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            CRUDOperation       operation = new CRUDOperation();
            tbl_ProviderService dbitem    = operation.AddProviderService(item);

            return(Ok(dbitem));
        }
Beispiel #2
0
        public async Task <IHttpActionResult> UpdateProviderService(tbl_ProviderService item)
        {
            CRUDOperation operation = new CRUDOperation();

            if (item == null)
            {
                return(NotFound());
            }
            else
            {
                var dbitem = operation.UpdateProviderService(item);
                return(Ok(dbitem));
            }
        }