Beispiel #1
0
        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));
        }
Beispiel #3
0
        private string GetRoleName()
        {
            StaffRoleModel staffRoleModel = (StaffRoleModel)cboRole.SelectedItem;

            return(staffRoleModel.Name);
        }