// GET: Model11 public ActionResult Index() { Model11 objProductModel = new Model11(); objProductModel.ClassTitle = "Class"; objProductModel.AttendTitle = "Attend"; objProductModel.AbsentTitle = "Absent"; return(View(objProductModel)); }
public AccountModel() { context = new Model11(); }
/// <summary> /// /// </summary> /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="skip"></param> /// <param name="limit"></param> /// <param name="body"> (optional)</param> /// <returns>Task of string</returns> public async System.Threading.Tasks.Task <string> PostSchemaV1QuerySkipLimitAsync(decimal?skip, decimal?limit, Model11 body = null) { ApiResponse <string> localVarResponse = await PostSchemaV1QuerySkipLimitAsyncWithHttpInfo(skip, limit, body); return(localVarResponse.Data); }
/// <summary> /// /// </summary> /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="skip"></param> /// <param name="limit"></param> /// <param name="body"> (optional)</param> /// <returns>Task of ApiResponse (string)</returns> public async System.Threading.Tasks.Task <ApiResponse <string> > PostSchemaV1QuerySkipLimitAsyncWithHttpInfo(decimal?skip, decimal?limit, Model11 body = null) { // verify the required parameter 'skip' is set if (skip == null) { throw new ApiException(400, "Missing required parameter 'skip' when calling SchemaApi->PostSchemaV1QuerySkipLimit"); } // verify the required parameter 'limit' is set if (limit == null) { throw new ApiException(400, "Missing required parameter 'limit' when calling SchemaApi->PostSchemaV1QuerySkipLimit"); } var localVarPath = "/schema/v1/query/{skip}/{limit}"; var localVarPathParams = new Dictionary <String, String>(); var localVarQueryParams = new List <KeyValuePair <String, String> >(); var localVarHeaderParams = new Dictionary <String, String>(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary <String, String>(); var localVarFileParams = new Dictionary <String, FileParameter>(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) { localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); } if (skip != null) { localVarPathParams.Add("skip", this.Configuration.ApiClient.ParameterToString(skip)); // path parameter } if (limit != null) { localVarPathParams.Add("limit", this.Configuration.ApiClient.ParameterToString(limit)); // path parameter } if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { localVarPostBody = body; // byte array } // make the HTTP request IRestResponse localVarResponse = (IRestResponse)await this.Configuration.ApiClient.CallApiAsync(localVarPath, Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("PostSchemaV1QuerySkipLimit", localVarResponse); if (exception != null) { throw exception; } } return(new ApiResponse <string>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (string)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string)))); }
/// <summary> /// /// </summary> /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="skip"></param> /// <param name="limit"></param> /// <param name="body"> (optional)</param> /// <returns>string</returns> public string PostSchemaV1QuerySkipLimit(decimal?skip, decimal?limit, Model11 body = null) { ApiResponse <string> localVarResponse = PostSchemaV1QuerySkipLimitWithHttpInfo(skip, limit, body); return(localVarResponse.Data); }