public JobServiceGroupDTO GetTAT([FromUri] JobServiceGroupDTO values) { //for the first group in the user defined order the recipt date is calculated based on rules //for the rest we'll use the receipt date the minimum delivery date of the precedent group as a starting date RequestBL bl = new RequestBL(this._context.Session, _logger); string[] services = { "ED", "MO", "RE", "TR" }; //var receiptDate = bl.GetReceiptDate(values.Priority, hours, holidays); values.ReceiptDate = bl.GetReceiptDate(values.Priority); values.Turnaround = services.Contains(values.Service) ? bl.GetTurnaroundTimeForParamaters(values.Volume, values.Priority, values.Service) : 1; values.MinimumDeliveryDate = bl.GetMinDeadline(values.ReceiptDate, values.Turnaround, values.Priority); return(values); }