Exemplo n.º 1
0
 public async Task <Response <Rol> > CreatAsync(Rol rol)
 {
     (await _rolRepository.Get(new Parameters()
                               .Add(nameof(rol.Nombre), rol.Nombre)))
     .Error(async x =>
     {
         await _rolRepository.InsertDataAsync(rol);
     });
     return(Response <Rol> .Ok(default));