internal object Edit(int id, Song song) { Song editable = Get(id); editable.Title = song.Title != null ? song.Title : editable.Title; editable.Description = song.Description != null ? song.Description : editable.Description; editable.Year = song.Year != null ? song.Year : editable.Year; return(_repo.Edit(editable)); }