/// <summary> /// Воскресные богородичны первого приложения /// </summary> private void MigrateDayTheotokions(TheotokionAppPlace source, DayOfWeek day) { AddTheotokionRequest request = new AddTheotokionRequest(); for (int ihos = 1; ihos <= 8; ihos++) { request.Theotokion = Factory.Create(source, ihos, day, FileReader.Read(source, ihos, day)); Service.Add(request); } }
public AddTheotokionResponse Add(AddTheotokionRequest request) { AddTheotokionResponse resp = new AddTheotokionResponse(); try { if (request.Theotokion == null) { resp.Exception = new ArgumentNullException("request.Theotokion"); } else { _unitOfWork.Repository <TheotokionApp>().Add(request.Theotokion); } } catch (Exception ex) { resp.Exception = ex; } return(resp); }