public int GetCategoryId(Category category) { category.Id = aCategoryGateway.GetCategoryId(category); return(category.Id); }