public PlanDto CreatePlan(PlanBaseDto planBaseDto) { var insertedPlan = _planDataStore.CreatePlan(_mapper.Map <Plan>(planBaseDto)); return(_mapper.Map <PlanDto>(insertedPlan)); }
public ActionResult <PlanDto> CreatePlan(PlanBaseDto planDto) { return(Ok(_planService.CreatePlan(planDto))); }