Exemplo n.º 1
0
        public IActionResult OnGetEdit(long id)
        {
            var account = _accountApplication.GetDetail(id);

            account.Roles = _roleApplication.GetRoles();

            return(Partial("Edit", account));
        }
Exemplo n.º 2
0
 public IHttpActionResult GetDetail(Guid code)
 {
     try
     {
         return(Ok(accountApp.GetDetail(code, base.AccountCode, base.AccountEmail, true, true)));
     }
     catch (ArgumentException ex)
     {
         return(BadRequest(ex));
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }