Beispiel #1
0
        public async Task <IHttpActionResult> DeleteScheme(int ID)
        {
            HttpResponseMessage response = new HttpResponseMessage();

            try
            {
                var retValue = await Task.Run(() => _schemeService.DeleteScheme(ID));

                return(Ok(retValue));
            }
            catch (Exception ex)
            {
                response = Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message);
                return(ResponseMessage(response));
            }
            finally
            {
            }
        }
Beispiel #2
0
 public BaseResponse DeleteScheme(int schemeId)
 {
     return(service.DeleteScheme(schemeId));
 }