Answer to Question #158659 in Web Development for ahad

Question #158659

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


1
Expert's answer
2021-01-26T08:19:27-0500
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; }
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS