public Tool CreateTool(ToolForCreationDto toolForCreation) { //***Validate input; //TODO //map the creation dto to regular tool Tool tool = new Tool() { Name = toolForCreation.Name, Description = toolForCreation.Description, DailyCost = toolForCreation.DailyCost, ReplacementCost = toolForCreation.ReplacementCost, QuantityAvailable = toolForCreation.QuantityAvailable }; Tool createdTool = _toolRepository.Create(tool); return(createdTool); }