public void AddClosureCategoyById(IClosureData item, int closureCategoryId) { item.ClosureCategories.ToList().Add(_unitOfWork.CategoryRecord.Get(closureCategoryId)); UpdateClosureData(item); }
public void UpdateClosureData(IClosureData item) { _unitOfWork.ClosureData.Update(item); _unitOfWork.Save(); }