Пример #1
0
        /// <summary>
        /// Воскресные богородичны первого приложения
        /// </summary>
        private void MigrateDayTheotokions(PlaceYmnosSource source, DayOfWeek day)
        {
            InsertTheotokionRequest request = new InsertTheotokionRequest();

            for (int ihos = 1; ihos <= 8; ihos++)
            {
                request.Theotokion = Factory.Create(source, ihos, day, FileReader.Read(source, ihos, day));

                Service.InsertTheotokion(request);
            }
        }
Пример #2
0
        public InsertTheotokionResponse InsertTheotokion(InsertTheotokionRequest request)
        {
            InsertTheotokionResponse resp = new InsertTheotokionResponse();

            try
            {
                if (request.Theotokion == null)
                {
                    resp.Exception = new ArgumentNullException("request.Theotokion");
                }
                else
                {
                    _unitOfWork.Repository <TheotokionApp>().Insert(request.Theotokion);
                }
            }
            catch (Exception ex)
            {
                resp.Exception = ex;
            }

            return(resp);
        }