/// <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)))); }
/// <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)))); }