public ProfileUser Delete(DeleteProfileUserCommand command) { var profile = _repository.GetById(command.ProfileId); _repository.Delete(profile); if (Commit()) { return(profile); } return(null); }