public Share UpdateShare(ShareToUpdate share) { if (share == null || share.Name == null || share.Name.Length == 0 || share.Name.Length > 100 || share.Price == 0M) { return(null); } return(sharesRepository.UpdateShare(share)); }
public Share UpdateShare(ShareToUpdate share) { if (share == null || share.Name == null || share.Name.Length == 0 || share.Name.Length > 100 || share.Price == 0M) { return(null); } return(sharesRepository.UpdateShare(share)); }