Example #1
0
        public List <DivisionModel> DeleteDivision(DivisionModel aDivisionModel)
        {
            try
            {
                _divRepository.DeleteDivision(aDivisionModel.Id);
            }
            catch (Exception ex)
            {
                string message = LogException(ex, aDivisionModel.CurrentUserID);
                throw new Exception(message);
            }

            BaseViewModel md = new BaseViewModel();

            md.CurrentCulture = aDivisionModel.CurrentCulture;
            md.CurrentUserID  = aDivisionModel.CurrentUserID;
            return(GetDivisionList(md));
        }
Example #2
0
 public bool DeleteDivision(int id)
 {
     return(_divisionRepository.DeleteDivision(id));
 }