public IResult Add(Video video) { IResult result = BusinessRule.Run ( CheckIfVideoAlreadyExist(video.Id), _userService.CheckIfUserExist(video.UserId), _channelService.CheckIfChannelExist(video.ChannelId) ); if (result != null) { return(result); } video.Date = DateTime.Now; _videoDal.Add(video); return(new SuccessResult()); }
public void Add(Video video) { _videoDal.Add(video); }