public JsonResult DeleteImage() { var response = new ResponseModel <string>(); var monitorId = int.Parse(Request.Form.GetValues("monitorId")[0]); var imageId = int.Parse(Request.Form.GetValues("imageId")[0]); var appLocation = Directory.GetParent(HttpRuntime.AppDomainAppPath).Parent.FullName; service.DeleteImage(monitorId, imageId, appLocation); return(new JsonResult() { Data = response }); }