コード例 #1
0
        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));
        }