Posts by Shai Pinho • 26 points
5 posts
-
0
votes1
answer46
viewsA: Map a property to Enum
Patient and Patientviewmodel must have the same types of data, or else you must inform the conversion manually. .ForMember(dest => dest.Estado, opt => opt.MapFrom(src =>…
-
0
votes1
answer40
viewsA: Return Iqueryable in the method
Have you tried the code below? public IQueryable<Usuario> ObterUsuarios() { return _userManager.Users .Include(u => u.UsuarioClaim) .OrderBy(u => u.Name); }…
-
0
votes1
answer29
viewsA: Exception in Selenium Webdriver c#
According to the message, it did not find a link with the text of the element. Try to find the element by another type of location, for example: CSS, ID, Name. Instead…
-
0
votes1
answer51
viewsA: Return in JSON
Check the version of Newtonsoft Try the code below: services.AddControllersWithViews() .AddNewtonsoftJson(options => options.SerializerSettings.ReferenceLoopHandling =…
-
1
votes2
answers134
viewsA: Error creating a Custom Exception
You’re not treating the mistake, just throwing a throw throw new ValorMuitoBaixoException( "Erro personalizado") Do it: try { numero = 5 / numero; // coloco 0 (zero) para entrar no CATCH }…
c#answered Shai Pinho 26