public ActionResult CompanyManage(int id = 0) { CompanyModel model = new CompanyModel(); if (id == 0) { model.Id = 0; model.Name = ""; model.Address = ""; model.Url = ""; model.Tel = ""; } else { model = model.GetCompanyById(id); } return(View(model)); }