Ejemplo n.º 1
0
        public SingleRsp UpdateNguoidung(NguoidungReq user)
        {
            var          res       = new SingleRsp();
            NguoidungSvc nguoidung = new NguoidungSvc();

            nguoidung.MaUser   = user.MaUser;
            nguoidung.TenUser  = user.TenUser;
            nguoidung.MatKhau  = user.MatKhau;
            nguoidung.NgaySinh = user.NgaySinh;
            nguoidung.GioiTinh = user.GioiTinh;
            nguoidung.GhiChu   = user.GhiChu;
            res = _rep.UpdateNguoidung(nguoidung);
            return(res);
        }
Ejemplo n.º 2
0
        public IActionResult UpdateNguoidung([FromBody] NguoidungReq req)
        {
            var res = _svc.UpdateNguoidung(req);

            return(Ok(res));
        }
Ejemplo n.º 3
0
        public IActionResult DeleteNguoidung([FromBody] NguoidungReq req)
        {
            var res = _svc.DeleteNguoidung(req.MaUser);

            return(Ok(res));
        }