public StaffRoleModel GetById(int?id) { var body = ""; StaffRoleModel StaffRoleModelById = ServerResponse.Invoke <StaffRoleModel>("api/staffRole/getDetail?id=" + id, body, "GET"); return(StaffRoleModelById); }
public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } StaffRoleModel StaffRoleModelById = Services.StaffRoleService.GetById(id); return(View(StaffRoleModelById)); }
private string GetRoleName() { StaffRoleModel staffRoleModel = (StaffRoleModel)cboRole.SelectedItem; return(staffRoleModel.Name); }