public void Delete(int id) { var post = _postRepository.FindSingle(s => s.Id == id); _postCUDRepository.Remove(post); }
public void Delete(string bussinessRoleId) { var businessRole = businessRoleRepository.FindSingle(s => s.Id == bussinessRoleId); brCUDRepository.Remove(businessRole); }
public void Delete(int userId) { var user = userRepository.FindSingle(s => s.Id == userId); userCUDRepository.Remove(user); }
public void Delete(UserRoleViewModel userRoleViewModel) { var role = Mapper.Map <UserRoleViewModel, UserRole>(userRoleViewModel); urCUDRepository.Remove(role); }