Example #1
0
        public IActionResult Delete(int id)
        {
            var result = _schemeMaster.DeleteScheme(id);

            if (result)
            {
                return(Ok());
            }
            else
            {
                return(BadRequest());
            }
        }
        public HttpResponseMessage Delete(int id)
        {
            var result = _schemeMaster.DeleteScheme(id);

            if (result)
            {
                var response = new HttpResponseMessage()
                {
                    StatusCode = HttpStatusCode.OK
                };
                return(response);
            }
            else
            {
                var response = new HttpResponseMessage()
                {
                    StatusCode = HttpStatusCode.BadRequest
                };
                return(response);
            }
        }
Example #3
0
 public ActionResult Delete(string ID)
 {
     objISchemeMaster.DeleteScheme(ID);
     return(RedirectToAction("Details"));
 }