public JsonResult EditConsentMaster(int ConsentID)
        {
            BL_ConsentMaster     cons    = new BL_ConsentMaster();
            ConsentMaster        obj     = new ConsentMaster();
            List <ConsentMaster> GetList = new List <ConsentMaster>();
            DataSet ds = cons.GetConsentMaster(ConsentID);

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                GetList.Add(new ConsentMaster

                {
                    HospitalID  = Convert.ToInt32(dr["HospitalID"]),
                    LocationID  = Convert.ToInt32(dr["LocationID"]),
                    ConsentName = dr["ConsentName"].ToString(),
                    ConsentID   = dr["ConsentID"].ToString(),
                    Path        = dr["Path"].ToString(),
                });
            }



            return(new JsonResult {
                Data = GetList, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
        public JsonResult GetAllConsentMaster()
        {
            BL_ConsentMaster BL_obj = new BL_ConsentMaster();

            return(new JsonResult {
                Data = BL_obj.GetAllConsentMaster(), JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
        public ActionResult Delete(int ConsentID)
        {
            string           val           = "";
            ConsentMaster    obj           = new ConsentMaster();
            BL_ConsentMaster consentMaster = new BL_ConsentMaster();

            if (consentMaster.DeleteConsentMaster(ConsentID))
            {
                val = "ConsentMaster Deleted Successfully";
            }
            return(Json(val));
        }