public List <EmploymentTypeModel> DeleteEmploymentType(EmploymentTypeModel model) { List <EmploymentTypeModel> EmploymentTypes = null; try { _EmploymentTypeRepository.DeleteEmploymentType(model.ID); EmploymentTypes = GetAllEmploymentTypeList(model); } catch (Exception ex) { IErrorLogService errorLog = new ErrorLogService(); string message = ex.InnerException != null ? ex.InnerException.InnerException.Message : ex.Message; errorLog.SetErrorLog(model.CurrentUserID, "EmploymentType", message); throw new Exception(ex.Message); } return(EmploymentTypes); }