public async Task<Tuple<long, bool>> Save(Feed feed) { var feedModel = feed.ToModel(); _unitOfWork.Repository<DAL.Models.Feed>().AddUpdate(feedModel); await _unitOfWork.SaveChanges(); if (feedModel.Id == 0) { return new Tuple<long, bool>(0, true); } return new Tuple<long, bool>(feedModel.Id, true); }