public async Task <IActionResult> CreateType(string name, string price) { if (await _deviceTypeService.IsThereType(name)) { return(new JsonResult("faketype")); } price = price.Replace('.', ','); await _deviceTypeService.CreateTypeAsync(name, Double.Parse(price)); return(new JsonResult("")); }