public string FetchStaff(int?StaffId)
        {
            StaffsRepository staffRepository = new StaffsRepository(new ErpStaffDbContext());
            var profileimage = staffRepository.GetvwStaffsById(StaffId.Value);

            return(Erp.BackOffice.Helpers.Common.KiemTraTonTaiHinhAnh(profileimage.ProfileImage, "Staffs", "user"));
        }
        public vwStaffs FetchListStaff(int?StaffId)
        {
            StaffsRepository staffRepository = new StaffsRepository(new ErpStaffDbContext());
            //CategoryRepository categoryRepository = new CategoryRepository(new ErpDbContext());
            vwStaffs staff = staffRepository.GetvwStaffsById(StaffId.Value);

            staff.ProfileImage = Erp.BackOffice.Helpers.Common.KiemTraTonTaiHinhAnh(staff.ProfileImage, "Staff", "user");
            return(staff);
        }