//delete method public int deleteOwner(int id) { try { vessel_owner_ref vessel_owner_ref = OwnersService.getOwnerDB(id); //get the existing vessel_owner_ref object to modify its status vessel_owner_ref.owner.owner_last_modified_date = DateTime.Now; vessel_owner_ref.owner.owner_last_modified_by = HttpContext.Current.User.Identity.Name; vessel_owner_ref.owner.owner_status = 0; return(OwnersService.deleteOwnerDB(id, vessel_owner_ref)); } catch (Exception) { throw; } }