public IActionResult All([FromBody] BaseGetAll res) { List <NoteUngVien> note_ung_vien = QLCUNL.BL.NoteUngVienBL.GetAll(res.page_index, res.page_size).ToList(); return(Ok(new DataResponse() { data = note_ung_vien, success = note_ung_vien != null, msg = "" })); }
public IActionResult All([FromBody] BaseGetAll res) { List <Label> label = QLCUNL.BL.LabelBL.GetAll(res.page_index, res.page_size).ToList(); return(Ok(new DataResponse() { data = label, success = label != null, msg = "" })); }
public IActionResult All([FromBody] BaseGetAll req) { List <CongTy> congtys = QLCUNL.BL.CongTyBL.GetAll(app_id, req.term, req.page_index, req.page_size).ToList(); return(Ok(new DataResponse() { data = congtys, success = congtys != null, msg = req.page_size.ToString() })); }
public IActionResult All([FromBody] BaseGetAll res) { List <ThuocTinh> ThuocTinh = QLCUNL.BL.ThuocTinhBL.GetAll(res.page_index, res.page_size).ToList(); return(Ok(new DataResponse() { data = ThuocTinh, success = ThuocTinh != null, msg = "" })); }
public IActionResult All([FromBody] BaseGetAll req) { if ((is_sys_admin || is_app_admin)) { List <Menu> menus = QLCUNL.BL.MenuBL.GetAll(app_id, req.page_index, req.page_size).ToList(); return(Ok(new DataResponse() { data = menus, success = menus != null, msg = req.page_size.ToString() })); } return(BadRequest()); }