コード例 #1
0
        public ActionResult ManageRecordVisit_Create([DataSourceRequest] DataSourceRequest request, CRM_VisitHistory _mapping, long oid)
        {
            if (ModelState.IsValid)
            {
                _mapping.PersonID = oid;

                _mapping.CreatedBy = CurrentUser.NameIdentifierInt64;
                _mapping.CreatedOn = DateTime.Now;

                _mapping.ID = _PersonBAL.ManageRecordVisit_CreateBAL(_mapping);
            }
            var resultData = new[] { _mapping };

            return(Json(resultData.ToDataSourceResult(request, ModelState)));
        }