public async Task <object> UpdateProductAsync(ProductPut dto) { var im = new Product() { Id = dto.Id, CategoryID = dto.CategoryID, Description = dto.Description, Price = dto.Price, Stock = dto.Stock }; var om = await _dal.UpdateProductAsync(im); return(GetDto(om)); }