public SingleRsp UpdateKyNang(KyNangReq ky) { var res = new SingleRsp(); KyNang kynang = new KyNang(); kynang.MakyNang = ky.MakyNang; kynang.TenKyNang = ky.TenKyNang; res = _rep.UpdateKyNang(kynang); return(res); }
public IActionResult UpdateKyNang([FromBody] KyNangReq req) { var res = _svc.UpdateKyNang(req); return(Ok(res)); }