public async Task <IActionResult> AddProperty([FromRoute] string templateId, [FromBody] PropertyViewModel propertyViewModel) { var property = mapper.Map <Property>(propertyViewModel); property.TemplateId = templateId; property = await inventoryProvider.AddProperty(property); mapper.Map(property, propertyViewModel); return(Ok(propertyViewModel)); }