Skip to content

Instantly share code, notes, and snippets.

View icebeam7's full-sized avatar
💭
🎶 You can roam the world with colours, flying high 🎶

Luis Beltran icebeam7

💭
🎶 You can roam the world with colours, flying high 🎶
View GitHub Profile
{
"bindings": [
{
"authLevel": "anonymous",
"name": "req",
"type": "httpTrigger",
"direction": "in",
"methods": [
"get",
"post"
public class Student
{
public string Id { get; set; }
public string Faculty { get; set; }
public string Name { get; set; }
public int Semester { get; set; }
}
@icebeam7
icebeam7 / Create.cshtml
Last active January 9, 2021 15:14
Views/Estudiante/Create.cshtml
@model UniversidadWebsite.Models.Estudiante
@{
ViewData["Title"] = "Create";
}
<h1>Create</h1>
<h4>Estudiante</h4>
<hr />
@icebeam7
icebeam7 / EstudiantesController
Last active January 9, 2021 15:12
Controllers/EstudiantesController.cs
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;
@icebeam7
icebeam7 / StorageHelper.cs
Last active January 9, 2021 15:12
Helpers/StorageHelper.cs
using System;
using System.IO;
using System.Threading.Tasks;
using Azure.Storage;
using Azure.Storage.Blobs;
namespace UniversidadWebsite.Helpers
{
public static class StorageHelper
@icebeam7
icebeam7 / AzureStorageConfig.cs
Created January 9, 2021 14:28
Helpers/AzureStorageConfig.cs
namespace UniversidadWebsite.Helpers
{
public class AzureStorageConfig
{
public string Cuenta { get; set; }
public string Llave { get; set; }
public string Contenedor { get; set; }
}
}
@icebeam7
icebeam7 / Startup.cs
Last active January 9, 2021 15:15
Startup.cs
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;
@icebeam7
icebeam7 / UniversidadContexto.cs
Created January 9, 2021 11:27
Context/UniversidadContexto.cs
using Microsoft.EntityFrameworkCore;
using UniversidadWebsite.Models;
namespace UniversidadWebsite.Context
{
public class UniversidadContexto : DbContext
{
public UniversidadContexto(DbContextOptions<UniversidadContexto> opciones) : base(opciones)
{
@icebeam7
icebeam7 / Estudiante.cs
Last active January 9, 2021 15:23
Models/Estudiante.cs
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
@icebeam7
icebeam7 / ViewModelClass.cs
Created June 13, 2020 17:38
ViewModel Class - command code snippet
private ICommand $myCommand$;
public ICommand $MyCommand$ => $myCommand$ ?? ($myCommand$ = new Command(() =>
{
}));