Beispiel #1
0
        //User
        public async Task <User> ToUserAsync(RegisterUserViewModel model)
        {
            return(new User
            {
                Nombre = model.Nombre,

                ApellidoPaterno = model.ApellidoPaterno,

                ApellidoMaterno = model.ApellidoMaterno,

                Ci = model.Ci,

                UserName = model.UserName,

                Email = model.UserName,

                Disponible = true,

                Cargo = await faseRepository.GetNombreFaseAsync(model.CargoId),

                CargoNumero = await faseRepository.GetNumeroFaseAsync(model.CargoId),
            });
        }