public JsonResult GetBrandssByCategoryId(int?categoryId) { var categories = brandManager.GetBrandssByCategoryId(categoryId).Select(c => new { c.Id, c.Name, c.Code, c.CategoryId, c.Description }); return(Json(categories, JsonRequestBehavior.AllowGet)); }