Posts by Mr.GMSOFT • 79 points
7 posts
-
1
votes1
answer96
viewsA: How to make a Custom Attribute in a webapi get the parameter passed via C#URL
I was able to solve it this way: public class ValidationNF:ActionFilterAttribute { public override void OnActionExecuting(HttpActionContext actionContext) { base.OnActionExecuting(actionContext);…
-
1
votes1
answer96
viewsQ: How to make a Custom Attribute in a webapi get the parameter passed via C#URL
I am creating a Custom Attribute in a webapi to validate a value and I would like to know if you can capture this value from a GET request. I wanted to do it that way: [Validacao] public Empresa…
-
1
votes1
answer113
viewsQ: Relationship in table with Include does not work
I can’t get my father table to include the dependent: var medicos = TabelaMedico.Include(m => m.Especialidade).ToList(); Displays the following error message: CS1660: Cannot Convert lambda…
-
1
votes1
answer234
viewsQ: Error while consuming Github API V3 using Httpclient or even Httpwebrequest
I’m unable to consume the Github V3 API with basic authentication (without using Octokit). I know it works with Restsharp but I want to know why it doesn’t work with HttpClient and HttpWebRequest. I…
-
2
votes4
answers2549
views -
-2
votes4
answers2549
views -
0
votes2
answers653
viewsQ: How to execute via JS the action of a send email button, whose ID always changes?
I need to perform the action of this button, which originally works with Control+Enter, using a JS of mine, but the only static things of the button are the data-tooltip and aria-label: <div…
javascriptasked Mr.GMSOFT 79