public UserLog Create(CreateUserLogCommand command) { var userLog = new UserLog(command); userLog.CreateUserlog(userLog); _repository.Create(userLog); if (Commit()) { return(userLog); } return(null); }