public string revertInsertedUserDetails(string companyCode, string employeeCode, string userCode, int noticeBoardCount, int productDetailCount, int leaveDetailCount, string employeeEntrymode, string divisionCode, int DivisiondetailsCount, int UserProjectdetailsCount) { string returnString = string.Empty; int rowsAffected = 0; //Delete NoticeBoard Details if (noticeBoardCount > 0) { rowsAffected = _objDALUsercretion.DeleteNoticeBoardDetails(companyCode, userCode); } //Delete User Product Details if (productDetailCount > 0) { rowsAffected = _objDALUsercretion.DeleteUserProductDetails(companyCode, userCode); } //Delete Leave Details if (leaveDetailCount > 0) { rowsAffected = _objDALUsercretion.DeleteLeaveDetails(companyCode, userCode); } //Delete User Project Details if (UserProjectdetailsCount > 0) { rowsAffected = _objDALUsercretion.DeleteUserProjectDetails(companyCode, userCode); } //Delete Division Details if (DivisiondetailsCount > 0) { rowsAffected = _objDALUsercretion.DeletedDivisionEntityMapping(companyCode, divisionCode, userCode); } //Delete User Details if (!string.IsNullOrEmpty(userCode)) { rowsAffected = _objDALUsercretion.DeleteUserMasterDetails(companyCode, userCode); } //Delete Employee Details if (employeeEntrymode.ToUpper() == "I") { if (!string.IsNullOrEmpty(employeeCode)) { rowsAffected = _objDALUsercretion.DeleteEmployeeMasterDetails(companyCode, employeeCode); } } return("FAILURE"); }