public int Update(Ward ward) { try { int rs = _iWardService.Edit(ward);//call service if (rs == 1) { _iWardService.Save();//save changes } return(rs); } catch { return(0); } }
public int Update(Ward ward) { try { int rs = _iWardService.Edit(ward);//call service if (rs == 1) { _iWardService.Save();//save changes } return(rs); } catch { return(0); } }