//EDIT********************** internal Board Edit(Board editBoards) { Board original = GetById(editBoards.boardId); original.Name = editBoards.Name != null ? editBoards.Name : original.Name; return(_repo.Edit(original)); }
internal Board Edit(Board updated) { Board data = GetById(updated.Id); data.Name = updated.Name != null ? updated.Name : data.Name; data.Description = updated.Description != null ? updated.Description : data.Description; data.OpenToPublicView = updated.OpenToPublicView; return(_repo.Edit(data)); }