Beispiel #1
0
        public bool WithDrawTranslatorMembership(StaffModel model)
        {
            bool status = false;

            try
            {
                IUnitOfWork      ouw     = new UnitOfWork();
                IStaffRepository rep     = new StaffRepository(ouw);
                IStaffService    service = new StaffService(rep);
                var mapdata = Mapper.Map <StaffModel, Staff>(model);
                status = rep.WithdrawMembeship(mapdata);
            }
            catch (Exception ex)
            {
                status = false;
                IErrorLogService errorLog = new ErrorLogService();
                string           message  = ex.InnerException != null ? ex.InnerException.InnerException.Message : ex.Message;
                throw new Exception(ex.Message);
            }

            return(status);
        }