コード例 #1
0
        public SingleRsp CapnhatChiNhanh(ChiNhanhReq pro)
        {
            var      res      = new SingleRsp();
            ChiNhanh chiNhanh = new ChiNhanh();

            chiNhanh.MaChiNhanh   = pro.MaChiNhanh;
            chiNhanh.TenChiNhanh  = pro.TenChiNhanh;
            chiNhanh.MaNv         = pro.MaNv;
            chiNhanh.DiaChi       = pro.DiaChi;
            chiNhanh.NgayHoatDong = pro.NgayHoatDong;
            chiNhanh.GiaThue      = pro.GiaThue;
            res = _rep.UpdateChiNhanh(chiNhanh);
            return(res);
        }
コード例 #2
0
        public IActionResult UpdateChiNhanh([FromBody] ChiNhanhReq req)
        {
            var res = _svc.CapnhatChiNhanh(req);

            return(Ok(res));
        }