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); }
public IActionResult UpdateChiNhanh([FromBody] ChiNhanhReq req) { var res = _svc.CapnhatChiNhanh(req); return(Ok(res)); }