public int ManageConfiguration_DeleteDAL(CRMHowHeard _Organization) { return(ExecuteScalarInt32Sp("CRM_Confugration_Delete", ParamBuilder.Par("ID", _Organization.ID), ParamBuilder.Par("ModifiedBy", _Organization.ModifiedBy), ParamBuilder.Par("ModifiedDate", _Organization.ModifiedOn))); }
public int ManageConfiguration_UpdateDAL(CRMHowHeard _Organization) { return(ExecuteScalarInt32Sp("CRM_ConfigrationUpdate", ParamBuilder.Par("ID", _Organization.ID), ParamBuilder.Par("Name", _Organization.Name), ParamBuilder.Par("Description", _Organization.Description), ParamBuilder.Par("ModifiedBy", _Organization.ModifiedBy), ParamBuilder.Par("ModifiedDate", _Organization.ModifiedOn))); }
public long ManageConfiguration_CreateDAL(CRMHowHeard _Organization) { var parameters = new[] { ParamBuilder.Par("ID", 0) }; return(ExecuteInt64withOutPutparameterSp("CRM_Configration_Create", parameters, ParamBuilder.Par("Name", _Organization.Name), ParamBuilder.Par("Description", _Organization.Description), ParamBuilder.Par("OrganizationID", _Organization.OrganizationID), ParamBuilder.Par("CreatedBy", _Organization.CreatedBy), ParamBuilder.Par("CreatedDate", _Organization.CreatedDate) )); }
public ActionResult Configuration_Destroy([DataSourceRequest] DataSourceRequest request, CRMHowHeard _courses) { if (ModelState.IsValid) { _courses.ModifiedBy = CurrentUser.NameIdentifierInt64; _courses.ModifiedOn = DateTime.Now; var result = _objSaleBAL.ManageConfiguration_DeleteBAL(_courses); if (result == -1) { ModelState.AddModelError(lr.ErrorServerError, lr.ResourceUpdateValidationError); } } var resultData = new[] { _courses }; return(Json(resultData.AsQueryable().ToDataSourceResult(request, ModelState))); }
public ActionResult ManageConfiguration_Create([DataSourceRequest] DataSourceRequest request, CRMHowHeard _objlogmap) { if (ModelState.IsValid) { _objlogmap.CreatedBy = CurrentUser.NameIdentifierInt64; _objlogmap.CreatedDate = DateTime.Now; _objlogmap.OrganizationID = CurrentUser.CompanyID; _objlogmap.ID = _objSaleBAL.ManageConfiguration_CreateBAL(_objlogmap); //} } var resultData = new[] { _objlogmap }; return(Json(resultData.ToDataSourceResult(request, ModelState))); }
public ActionResult ConfigurationUpdate([DataSourceRequest] DataSourceRequest request, CRMHowHeard _course) { if (ModelState.IsValid) { var _manageconfiguration = _objSaleBAL.ManageConfiguration_GetAllBAL(CurrentUser.CompanyID, ""); bool flage = false; foreach (var x in _manageconfiguration) { if (x.Name == _course.Name) { flage = true; break; } } if (flage) { ModelState.AddModelError(lr.DubliocationHappen, lr.CRMConfigrationAllreadyExists); } else { _course.ModifiedBy = CurrentUser.NameIdentifierInt64; _course.ModifiedOn = DateTime.Now; var result = _objSaleBAL.ManageConfiguration_UpdateBAL(_course); if (result == -1) { ModelState.AddModelError(lr.ErrorServerError, lr.ErrorServerError); } } } var resultData = new[] { _course }; return(Json(resultData.ToDataSourceResult(request, ModelState))); }
public ActionResult ManageConfiguration_Create([DataSourceRequest] DataSourceRequest request, CRMHowHeard _objlogmap) { if (ModelState.IsValid) { var _manageconfiguration = _objSaleBAL.ManageConfiguration_GetAllBAL(CurrentUser.CompanyID, ""); bool flage = false; foreach (var x in _manageconfiguration) { if (x.Name == _objlogmap.Name) { flage = true; break; } } if (flage) { ModelState.AddModelError(lr.DubliocationHappen, lr.CRMConfigrationAllreadyExists); } else { _objlogmap.CreatedBy = CurrentUser.NameIdentifierInt64; _objlogmap.CreatedDate = DateTime.Now; _objlogmap.OrganizationID = CurrentUser.CompanyID; _objlogmap.ID = _objSaleBAL.ManageConfiguration_CreateBAL(_objlogmap); } } var resultData = new[] { _objlogmap }; return(Json(resultData.ToDataSourceResult(request, ModelState))); }
public int ManageConfiguration_DeleteBAL(CRMHowHeard _Organization) { return(DAL.ManageConfiguration_DeleteDAL(_Organization)); }
public long ManageConfiguration_CreateBAL(CRMHowHeard _Organization) { return(DAL.ManageConfiguration_CreateDAL(_Organization)); }