/// <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); } }
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); }