Exemplo n.º 1
0
        public bool PartialUpdtStaff(int id, StaffPatch st)
        {
            var Staff = _Stafflist.Staff.Find(id);

            Staff.Address       = st.Address;
            Staff.ContactNumber = st.ContactNumber;
            Staff.Role          = st.Role;
            _Stafflist.SaveChanges();
            return(true);
        }
 public ActionResult Putpar(int id, [FromBody] StaffPatch st)
 {
     this._IStaffService.PartialUpdtStaff(id, st);
     return(Ok());
 }