public IActionResult NguoiDung_DangNhap_Admin_Select([FromBody] NguoiDungReq req)
        {
            var res = new SingleRsp();

            res.Data = _svc.NguoiDung_DangNhap_Admin_Select(req.TenDangNhap, req.MatKhau);
            return(Ok(res));
        }
        public IActionResult NguoiDung_Delete([FromBody] NguoiDungReq req)
        {
            var res = new SingleRsp();

            res.Data = _svc.NguoiDung_Delete(req.IdUser);
            return(Ok(res));
        }
        public IActionResult NguoiDung_Update([FromBody] NguoiDungReq req)
        {
            var res = new SingleRsp();

            res.Data = _svc.NguoiDung_Update(req.IdUser, req.IdTypeUser, req.TenDangNhap, req.MatKhau,
                                             req.HoVaTen, req.SoDienThoai, req.DiaChi);
            return(Ok(res));
        }
示例#4
0
        public SingleRsp UpdateNguoiDung(NguoiDungReq us)
        {
            var       res       = new SingleRsp();
            NguoiDung nguoiDung = new NguoiDung();

            nguoiDung.IdUser      = us.IdUser;
            nguoiDung.IdTypeUser  = us.IdTypeUser;
            nguoiDung.TenDangNhap = us.TenDangNhap;
            nguoiDung.MatKhau     = us.MatKhau;
            nguoiDung.HoVaTen     = us.HoVaTen;
            nguoiDung.SoDienThoai = us.SoDienThoai;
            nguoiDung.DiaChi      = us.DiaChi;
            res = _rep.UpdateNguoiDung(nguoiDung);
            return(res);
        }
示例#5
0
        public SingleRsp UpdateNguoiDung(NguoiDungReq nguoidung)
        {
            var       res = new SingleRsp();
            NguoiDung ng  = new NguoiDung();

            ng.MaNguoiDung  = nguoidung.MaNguoiDung;
            ng.TenDangNhap  = nguoidung.TenDangNhap;
            ng.MatKhau      = nguoidung.MatKhau;
            ng.TenNguoiDung = nguoidung.TenNguoiDung;
            ng.GioiTinh     = nguoidung.GioiTinh;
            ng.NgaySinh     = nguoidung.NgaySinh;
            ng.Email        = nguoidung.Email;
            res             = _rep.UpdateNguoiDung(ng);

            return(res);
        }
        public IActionResult UpdateNguoiDung([FromBody] NguoiDungReq req)
        {
            var pros = _svc.UpdateNguoiDung(req);

            return(Ok(req));
        }
        public IActionResult CreateNguoiDung([FromBody] NguoiDungReq req)
        {
            var res = _svc.CreateNguoiDung(req);

            return(Ok(res));
        }