public ActionResult Purchase(OperationMD Data) { RepositoryOperationRecord repo = new RepositoryOperationRecord(); AuthModel auth = RepositoryAuthModel.GetAuthModel(HttpContext.User.Identity as FormsIdentity); OperationResult <OperationRecordViewModel> result = repo.Purchase(Data, auth); return(Json(result)); }