Example #1
0
 /// <summary>
 /// Crea una instancia de User en la base de datos
 /// </summary>
 /// <param name="source">User a crear</param>
 /// <returns>User creado</returns>
 public virtual Entities.User CrearUser(Entities.User source)
 {
     return(MapperUser.MapToRelated(_RepositoryUser.CreateUser(MapperUser.MapTo(source))));
 }
Example #2
0
 /// <summary>
 /// Crea una instancia de User en la base de datos
 /// </summary>
 /// <param name="source">User a crear</param>
 /// <returns>User creado</returns>
 public virtual async Task <Entities.User> CrearUserAsync(Entities.User source)
 {
     return(MapperUser.MapToRelated(await _RepositoryUser.CreateUserAsync(MapperUser.MapTo(source))));
 }