Fixed unnecessary call

This commit is contained in:
Karol Górzyński 2020-12-20 15:59:42 +01:00
parent 10cd041d38
commit d6db2b6b56

View File

@ -71,7 +71,6 @@ namespace SessionCompanion.Controllers
Password = userRegisterModel.Password,
Username = userRegisterModel.Username
};
var user = await _service.SearchUserByUsername(userRegisterModel.Username);
await _service.Create(userModel);
await _service.SaveAsync();