public async Task <HttpResponseMessage> AddArrangements(EventRequest req) { if (req.Id != Guid.Empty) { if (req.Arrangements != null && req.Arrangements.Any()) { var ep = new EventProcessor(req.Id); List <IArrangement> list = new List <IArrangement>(); foreach (var ar in req.Arrangements) { list.Add(ar); } await ep.AddArrangements(list); return(new HttpResponseMessage() { StatusCode = System.Net.HttpStatusCode.OK }); } } return(new HttpResponseMessage(System.Net.HttpStatusCode.BadRequest)); }