Please Copy your MVC Application Created in Question 2 and Paste it in anther Folder named Question 3. 1. Allow User to Register Themselves by using Asp.net Identity. 2. Allow Users to Login by using Asp.net Identity. 3. Create Two Roles 1. Teacher 2. Student in your application using asp.net identity. 4. Teacher Role should no be able to access Student Controller and Student Role Should not be able to access Teacher Controller. 5. Allow users to login via their facebook, twitter, linked in, gmail and Microsoft account
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BlipDrop.Models
{
public class Customer
{
[Key]
[Column(Order = 1)]
public Guid CustomerID { get; set; }
[Required]
[MaxLength(128)]
public string CustomerName { get; set; }
[Required]
[MaxLength(3)]
public string CountryIso3 { get; set; }
[MaxLength(3)]
public string RegionCode { get; set; }
public virtual Country Country { get; set; }
public virtual Region Region { get; set; }
}
}
Comments
Leave a comment