Beispiel #1
0
        public ActionResult formDetail(int id)
        {
            FormDAL      formDAL      = new FormDAL();
            FormFieldDAL formFieldDAL = new FormFieldDAL();

            var form  = formDAL.GetById(id);
            var field = formFieldDAL.GetById(id);

            FormModel formModel = new FormModel()
            {
                Id          = id,
                Name        = form.Name,
                Description = form.Description,
                FirstName   = field.FirstName,
                LastName    = field.LastName,
                Age         = field.Age
            };

            return(Json(formModel));
        }