Exemple #1
0
 public Task <bool> handle_msg([FromBody] contact_us_msg body) =>
 _xsrf.validate_token(HttpContext, true) ? _svc.handle_msg(body, User) : Task.FromResult(false);
Exemple #2
0
 public Task <bool> handle_msg(contact_us_msg body, ClaimsPrincipal user)
 {
     // todo: process the request here.
     return(Task.FromResult(true));
 }