This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bindings": [ | |
{ | |
"authLevel": "anonymous", | |
"name": "req", | |
"type": "httpTrigger", | |
"direction": "in", | |
"methods": [ | |
"get", | |
"post" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Student | |
{ | |
public string Id { get; set; } | |
public string Faculty { get; set; } | |
public string Name { get; set; } | |
public int Semester { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model UniversidadWebsite.Models.Estudiante | |
@{ | |
ViewData["Title"] = "Create"; | |
} | |
<h1>Create</h1> | |
<h4>Estudiante</h4> | |
<hr /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.Rendering; | |
using Microsoft.EntityFrameworkCore; | |
using Microsoft.Extensions.Options; | |
using UniversidadWebsite.Context; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
using Azure.Storage; | |
using Azure.Storage.Blobs; | |
namespace UniversidadWebsite.Helpers | |
{ | |
public static class StorageHelper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace UniversidadWebsite.Helpers | |
{ | |
public class AzureStorageConfig | |
{ | |
public string Cuenta { get; set; } | |
public string Llave { get; set; } | |
public string Contenedor { get; set; } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using UniversidadWebsite.Context; | |
using Microsoft.EntityFrameworkCore; | |
using UniversidadWebsite.Helpers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.EntityFrameworkCore; | |
using UniversidadWebsite.Models; | |
namespace UniversidadWebsite.Context | |
{ | |
public class UniversidadContexto : DbContext | |
{ | |
public UniversidadContexto(DbContextOptions<UniversidadContexto> opciones) : base(opciones) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
using System.Text.Json.Serialization; | |
namespace UniversidadWebsite.Models | |
{ | |
[Table("Estudiantes")] | |
public class Estudiante |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private ICommand $myCommand$; | |
public ICommand $MyCommand$ => $myCommand$ ?? ($myCommand$ = new Command(() => | |
{ | |
})); |