Пример #1
0
        public void CreateChef(string userId, string userName)
        {
            Chef chefToCreate = new Chef
            {
                UserName = userName,
                UserId = userId
            };

            CreateChef(chefToCreate);
        }
Пример #2
0
 private void CreateChef(Chef chef)
 {
     _chefRepository.Add(chef);
     _unitOfWork.Commit();
 }
Пример #3
0
 public void EditChef(Chef chef)
 {
     _chefRepository.Update(chef);
     _unitOfWork.Commit();
 }