Ejemplo n.º 1
0
        //EDIT**********************
        internal Board Edit(Board editBoards)
        {
            Board original = GetById(editBoards.boardId);

            original.Name = editBoards.Name != null ? editBoards.Name : original.Name;


            return(_repo.Edit(original));
        }
Ejemplo n.º 2
0
        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));
        }