Beispiel #1
0
        public SingleRsp UpdateThongTinNguoiDung(ThongTinNguoiDungReq user)
        {
            var res = new SingleRsp();

            ThongTinNguoiDung thongTinNguoiDung = new ThongTinNguoiDung();


            thongTinNguoiDung.MaNguoiDung     = user.MaNguoiDung;
            thongTinNguoiDung.HoVaTen         = user.HoVaTen;
            thongTinNguoiDung.MaTaiKhoan      = user.MaTaiKhoan;
            thongTinNguoiDung.NgaySinh        = user.NgaySinh;
            thongTinNguoiDung.GioiTinh        = user.GioiTinh;
            thongTinNguoiDung.DiaChi          = user.DiaChi;
            thongTinNguoiDung.QueQuan         = user.QueQuan;
            thongTinNguoiDung.SoDienThoai     = user.SoDienThoai;
            thongTinNguoiDung.ViTriChucVu     = user.ViTriChucVu;
            thongTinNguoiDung.SoNamKinhNghiem = user.SoNamKinhNghiem;
            thongTinNguoiDung.TrinhDoHocVan   = user.TrinhDoHocVan;
            thongTinNguoiDung.CapBac          = user.CapBac;

            res = _rep.UpdateThongTinNguoiDung(thongTinNguoiDung);
            return(res);
        }
Beispiel #2
0
        public IActionResult UpdateThongTinNguoiDung([FromBody] ThongTinNguoiDungReq req)
        {
            var res = _svc.UpdateThongTinNguoiDung(req);

            return(Ok(res));
        }