public CallPlan(CallPlanCreate command) { ClientId = command.ClientId; TotalCalls = command.TotalCalls; Date = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); EscortManagerCalls = 0; RegionalManagerCalls = TotalCalls; }
public void Create(CallPlanCreate command) { /*_monthlyCallPlanRepository.Create( * new CallPlan( * command.ManagerId, * command.ClientId, * command.TotalCalls, * command.Month));*/ throw new Exception("Legacy"); }
public async Task <IActionResult> Post([FromBody] CallPlanCreate command) { var callPlan = await _context.Set <CallPlan>() .AddAsync(new CallPlan(command)); await _context.SaveChangesAsync(); return(Ok(callPlan.Entity)); }