예제 #1
0
        public void Delete(int id)
        {
            var post = _postRepository.FindSingle(s => s.Id == id);

            _postCUDRepository.Remove(post);
        }
예제 #2
0
        public void Delete(string bussinessRoleId)
        {
            var businessRole = businessRoleRepository.FindSingle(s => s.Id == bussinessRoleId);

            brCUDRepository.Remove(businessRole);
        }
예제 #3
0
        public void Delete(int userId)
        {
            var user = userRepository.FindSingle(s => s.Id == userId);

            userCUDRepository.Remove(user);
        }
예제 #4
0
        public void Delete(UserRoleViewModel userRoleViewModel)
        {
            var role = Mapper.Map <UserRoleViewModel, UserRole>(userRoleViewModel);

            urCUDRepository.Remove(role);
        }