private async Task <ValidationResult <Personnel> > CreatePersonnel(RegisterViewModel model) { var personnel = new Personnel() { Email = model.Email, Forenames = model.FirstName, Surname = model.LastName, Postcode = model.Pincode }; return(await PersonnelBusinessService.CreatePersonnel(personnel)); }
private async Task <ValidationResult <Personnel> > CreatePersonnel(RegisterViewModel model) { var personnel = new Personnel() { Email = model.Email, Forenames = model.FirstName, Surname = model.LastName, Postcode = model.Pincode, IsSeller = model.IsSeller, UserId = model.AspNetUserId, Mobile = model.MobileNumber }; return(await PersonnelBusinessService.CreatePersonnel(personnel)); }