public JsonResult GrantTokenByAdmin(int userid) { try { var token = _tokensService.GrantTokenByAdmin(userid); return(Json(new { Success = true, Token = token })); } catch (Exception ex) { return(Json(new { Success = true, Error = ex.Message })); } }
public JsonResult GrantTokenByAdmin(int userid) { try { var token = _tokensService.GrantTokenByAdmin(userid); return(Json(new { Success = true, Token = token })); } catch (Exception ex) { return(Json(new { Success = true, Error = ex.Message })); } }