public Response SetActiveClassRegistrationDetail(ClassMasterCustomModel objClassRegistrationModel)
 {
     _response = new Response();
     try
     {
         _response.responseData = objBDC.SetActiveClassRegistrationDetail(objClassRegistrationModel);
         _response.message      = "Status updated Successfully !!";
         _response.success      = true;
     }
     catch (Exception ex)
     {
         _response.success = false;
         _response.message = ex.Message.ToString();
     }
     finally
     {
         objBDC.Dispose();
     }
     return(_response);
 }
        public JsonResult UpdateStatus(string id)
        {
            objBDC = new ClassMasterBusiness();
            int  Id      = Convert.ToInt32(id);
            bool _Result = objBDC.FindById(Id);

            if (_Result == true)
            {
                _Result = false;
            }
            else
            {
                _Result = true;
            }

            ClassMasterCustomModel objModel = new ClassMasterCustomModel();

            objModel.ClassId = Id;
            objBDC.SetActiveClassRegistrationDetail(objModel);

            return(Json(new { result = _Result }));
        }