public async Task <ApplicationUserOut> Create(ApplicationUserOut user) { Validate(user); user.Id = Guid.NewGuid().ToString(); return((await repository.Upsert(user.AsDbModel())).AsOutModel()); }
public async Task <ApplicationUserOut> Update(ApplicationUserOut user) => (await repository.Upsert(user.AsDbModel())).AsOutModel();