@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Target" xml:space="preserve">
<value>H4sIAAAAAAAEAN1c227jNhB9L9B/EPTUFqmVS3exDewWWSdpg+aGOFv0bUFLtCOsRKkSlU1Q9Mv60E/qL3QoUTdedLEV21kUKNbi8MxwOCSHo6P898+/45+ffM94xFHsBmRiHoz2TQMTO3BcspyYCV18/878+aevvxqfOf6T8Xsud8TkoCeJJ+YDpeGxZcX2A/ZRPPJdOwriYEFHduBbyAmsw/39H62DAwsDhAlYhjG+Swh1fZz+gJ/TgNg4pAnyrgIHezF/Di2zFNW4Rj6OQ2TjiXnn340yKdM48VwEFsywtzANREhAEQX7jj/EeEajgCxnITxA3v1ziEFugbwYc7uPS/GuQ9g/ZEOwyo45lJ3ENPB7Ah4ccZ9YYveVPGsWPgOvnYF36TMbdeq5iXnh4PTRXeCBA0SFx1MvYsIT86pQcRKH15iO8o6jDPI8ArjPQfRpVEXcMzr32yti6HC0z/7bM6aJR5MITwhOaIS8PeM2mXuu/Rt+vg8+YTI5Opgvjt69eYuco7c/4KM31ZHCWEGu9gAe3UZBiCOwDS+K8ZuGVe9niR2LbpU+mVcglmA5mMYVerrEZEkfYKEcvjONc/cJO/kTHlwfiAurBzrRKIGf14nnobmHi3arUSf7f4PWwzdvB9F6jR7dZTr1gn5YOBGsqzvspa3xgxtmy6s23x+52HkU+Ox3Pb6y1o+zIIlsNphAK3KPoiWmdevGVhm8nUKaQQ0f1jnq7oc2s1QOb6UoG9AqKyFXsenVkNv7sno7R9xJGMLkpaHFPNIUcOUhNRJ67RnQVobKQddQITCEL3nnO/OR6w2w9XXQAtnGwo18XIzyfQCBhkhvm29RHMPKd35F8UOD6fDPAUyfYTuJICBnFPnhi2u7fQgIvk78OYvzzekabGruPwfnyKZBdEZYr7XxLgP7U5DQM+KcIoo/UDsHZD/vXb87wCDmnNg2juNzCGbsTANIpnPAC0KPDnvDsY1p26nH1EOur849hC30Yy5a5h9qCSkH0Yip8pAmUy+DpUu6mZ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7+NRFywj5Mcco+8NPiGHHf/rpfxfvS7wgVAAA</value>
</data>
<data name="DefaultSchema" xml:space="preserve">
<value>dbo</value>
</data>
</root>
@@ -0,0 +1,72 @@
namespace RmR.Migrations.IdentityMigrations
{
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;

internal sealed class Configuration : DbMigrationsConfiguration<RmR.Models.ApplicationDbContext>
{
public Configuration()
{
AutomaticMigrationsEnabled = false;
MigrationsDirectory = @"Migrations\IdentityMigrations";
ContextKey = "RmR.Models.ApplicationDbContext";
}

protected override void Seed(RmR.Models.ApplicationDbContext context)
{
// This method will be called after migrating to the latest version.
//1. Add admin role
if ((!context.Roles.Any(r => r.Name == "admin")))
{
//role does not exist - create it
var roleStore = new RoleStore<IdentityRole>(context);
var roleManager = new RoleManager<IdentityRole>(roleStore);
var roleToInsert = new IdentityRole { Name = "admin" };
roleManager.Create(roleToInsert);
}

//2. Add student role
if ((!context.Roles.Any(r => r.Name == "user")))
{
//role does not exist - create it
var roleStore = new RoleStore<IdentityRole>(context);
var roleManager = new RoleManager<IdentityRole>(roleStore);
var roleToInsert = new IdentityRole { Name = "client" };
roleManager.Create(roleToInsert);
}

//3. Add Instructor role
if ((!context.Roles.Any(r => r.Name == "expert")))
{
//role does not exist - create it
var roleStore = new RoleStore<IdentityRole>(context);
var roleManager = new RoleManager<IdentityRole>(roleStore);
var roleToInsert = new IdentityRole { Name = "expert" };
roleManager.Create(roleToInsert);
}

//4. add admin user and assign admin role
if ((!context.Users.Any(u => u.UserName == "admin@rmr.com")))
{
//admin user does not exist - create it
var userStore = new UserStore<Models.ApplicationUser>(context);
var userManager = new UserManager<Models.ApplicationUser>(userStore);
var userToInsert = new Models.ApplicationUser
{
UserName = "admin@rmr.com",
Email = "admin@rmr.com",
EmailConfirmed = true
};
userManager.Create(userToInsert, "Admin@123456");

//assign admin user to admin role
userManager.AddToRole(userToInsert.Id, "admin");
}

}
}
}
@@ -0,0 +1,52 @@
namespace RmR.Migrations.ResumeMigrations
{
using System;
using System.Data.Entity.Migrations;

public partial class InitialCreate : DbMigration
{
public override void Up()
{
CreateTable(
"dbo.Users",
c => new
{
ID = c.Int(nullable: false, identity: true),
FirstName = c.String(nullable: false, maxLength: 50),
LastName = c.String(nullable: false, maxLength: 60),
Email = c.String(nullable: false, maxLength: 80),
Discriminator = c.String(nullable: false, maxLength: 128),
})
.PrimaryKey(t => t.ID);

CreateTable(
"dbo.Resumes",
c => new
{
ResumeID = c.Int(nullable: false, identity: true),
ResumeName = c.Int(nullable: false),
CreatedOn = c.DateTime(nullable: false),
Status = c.Int(nullable: false),
Description = c.String(),
Client_ID = c.Int(),
Expert_ID = c.Int(),
})
.PrimaryKey(t => t.ResumeID)
.ForeignKey("dbo.Users", t => t.Client_ID)
.ForeignKey("dbo.Users", t => t.Expert_ID)
.Index(t => t.Client_ID)
.Index(t => t.Expert_ID);

}

public override void Down()
{
DropForeignKey("dbo.Resumes", "Expert_ID", "dbo.Users");
DropForeignKey("dbo.Resumes", "Client_ID", "dbo.Users");
DropIndex("dbo.Resumes", new[] { "Expert_ID" });
DropIndex("dbo.Resumes", new[] { "Client_ID" });
DropTable("dbo.Resumes");
DropTable("dbo.Users");
}
}
}
@@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Target" xml:space="preserve">
<value>H4sIAAAAAAAEAM1Y2W7jNhR9L9B/EPRYZCwnQQepYc8gdZLCaDZYmUHfAlq6dohSpEpSho2iX9aHflJ/oZfaLJHyliZFkReHvMu5+6X+/vOv4edVwrwlSEUFH/mnvb7vAY9ETPli5Gd6/uHC//zp22+G13Gy8r5WdOeGDjm5GvkvWqeDIFDRCyRE9RIaSaHEXPcikQQkFsFZv/9DcHoaAIrwUZbnDacZ1zSB/B/8dyx4BKnOCLsTMTBVnuNN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/eHRlAeVFHsbgvlhsqcl5GDPYAnmt87BmkKj4LtNofYC00mKeFS8xLQX1zh//exuFNeeQxmJbYHwj8QTT6HFlnEcDATBYPG7LwONJLhClKww41mZzj4ejo61tvPhtIAdxjy/vQ9saDa8QOGcFKG7rTTes3Bcq5XTRxS7DyiuVcufWAo34r7rj1updBtBT/qDarllC/jo+GTvMrm5B/5NW9Nfxabq3eh0m6f2oj345E/vRe/Di6EHLa3jVYA2r1VAY5/Z2F2+186hVvOdUQ9vJvaf6apTa/brfbHwyLqJIbCeWkPrr767K9dOv92Lhd13b/KGfTsc2buwVo7uVeCXBfA9+iLggzgWboF8uHkZj+HurWX6tzGhLomQr/JcT0K63A9CgQWcPnOGI0yFk1bl6rJTa/Jd4GrBZZfwz9/h+f+0n+W0WxPsZz9tc3+rXlPf3X5q7D5lCShcCcsQDjaLPeb2jbkt1tIVM0E3NUi+btdL1UBZe9vd4jL0dg6rq/VtBOvRs6q/jMAdlH+0BV9kZF1CiNcexW7FEQqaGV2F0iU1jiSJdj9fYY4g2UEfY05WyOUw7WLG0v/pkP2CYIm9Gb1JeJRwEBkHS7/yfzHCr9v2TxtzVZ7HN2mCw55DBGCTiHzthn5KiO8VfF8Y8uUGCBEw8qRUnCUXyel6WyBdh7QjUK6+Is7d4SDyAYzd0AV6xPvwBgZ7idfI3coHbjPI7oOoqn18RtA6RgHLMcr18Ak27AWb9/8B97Uf228uAAA=</value>
</data>
<data name="DefaultSchema" xml:space="preserve">
<value>dbo</value>
@@ -0,0 +1,18 @@
namespace RmR.Migrations.ResumeMigrations
{
using System;
using System.Data.Entity.Migrations;

public partial class CompletedOn : DbMigration
{
public override void Up()
{
AddColumn("dbo.Resumes", "CompletedOn", c => c.DateTime(nullable: false));
}

public override void Down()
{
DropColumn("dbo.Resumes", "CompletedOn");
}
}
}
@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Target" xml:space="preserve">
<value>H4sIAAAAAAAEAO1azW7jNhC+F+g7CDrtFlnLzq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/6e9l9NuTNb3ftrm3lu13r+9NVbbGUuTWbgS5iEcbBp7zK0lc8uuoWNngq5r3nzdjpyqgaIuuL39Zug7HVbH7dsI1qGfVn1lgTso/1AMvsjIsoAQL0eK3ZIj5DQTugilS2ocSRLtfr7GHEGyg84iThbI5TDtYsaS/zeRvYxgjr0JvY35KuYgMg7mful/doRfN+2fNA3LPA9vkwSH7UMEYJOIfO2Wfo6J7+V8Xxpy7xoIETCyBFecJReJ7nKTI92EtCVQpr48zt1jSC0BjN3SGXrGu/AGBnuFl8jdyMdyPcj2gyirfXhO0DJCAcswivXwCTbsBeuP/wGBKuqqVy8AAA==</value>
</data>
<data name="DefaultSchema" xml:space="preserve">
<value>dbo</value>
</data>
</root>
@@ -1,4 +1,4 @@
namespace RmR.Migrations.CollegeMigrations
namespace RmR.Migrations.ResumeMigrations
{
using System;
using System.Data.Entity;
@@ -10,7 +10,7 @@ internal sealed class Configuration : DbMigrationsConfiguration<RmR.DAL.ResumeCo
public Configuration()
{
AutomaticMigrationsEnabled = false;
MigrationsDirectory = @"Migrations\CollegeMigrations";
MigrationsDirectory = @"Migrations\ResumeMigrations";
}

protected override void Seed(RmR.DAL.ResumeContext context)
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RmR.Models
{
public class Client : User
{
public virtual ICollection<Resume> Resumes { get; set; }
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RmR.Models
{
public class Expert : User
{
public virtual ICollection<Resume> Resumes { get; set; }
}
}
@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RmR.Models
{
public enum Status
{
Submit, Review, Complete
}
public class Resume
{
public int ResumeID { get; set; }
[Required]
[Display(Name="Resume Name")]
public int ResumeName { get; set; }
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
[Display(Name = "Uploaded Date")]
public DateTime CreatedOn { get; set; }
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
[Display(Name = "Completed Date")]
public DateTime CompletedOn { get; set; }
public Status Status { get; set; }
[DisplayFormat(NullDisplayText ="No Description")]
public string Description { get; set; }
public virtual Expert Expert { get; set; }
public virtual Client Client { get; set; }
}
}
@@ -12,7 +12,7 @@ public class User
public int ID { get; set; }
[Required]
[StringLength(50)]
[Display(Name = "Full Name")]
[Display(Name = "First Name")]
public string FirstName { get; set; }
[Required]
[StringLength(60)]
@@ -30,7 +30,7 @@ public string FullName
return LastName + ", " + FirstName;
}
}
public virtual ICollection<User> Users { get; set; }
//public virtual ICollection<Resume> Resumes { get; set; }

}
}
@@ -199,26 +199,37 @@
<Compile Include="Controllers\AccountController.cs" />
<Compile Include="Controllers\HomeController.cs" />
<Compile Include="Controllers\ManageController.cs" />
<Compile Include="Controllers\ResumeController.cs" />
<Compile Include="Controllers\UserController.cs" />
<Compile Include="DAL\ResumeContext.cs" />
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Compile Include="Helpers\FileResults.cs" />
<Compile Include="Helpers\FileUploads.cs" />
<Compile Include="Migrations\CollegeMigrations\201605041718534_InitialCreate.cs" />
<Compile Include="Migrations\CollegeMigrations\201605041718534_InitialCreate.Designer.cs">
<DependentUpon>201605041718534_InitialCreate.cs</DependentUpon>
<Compile Include="Migrations\IdentityMigrations\201605120057301_InitialCreate.cs" />
<Compile Include="Migrations\IdentityMigrations\201605120057301_InitialCreate.Designer.cs">
<DependentUpon>201605120057301_InitialCreate.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\CollegeMigrations\Configuration.cs" />
<Compile Include="Migrations\IdentityMigrations\Configuration.cs" />
<Compile Include="Migrations\ResumeMigrations\201605101755087_InitialCreate.cs" />
<Compile Include="Migrations\ResumeMigrations\201605101755087_InitialCreate.Designer.cs">
<DependentUpon>201605101755087_InitialCreate.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\ResumeMigrations\201605162312562_CompletedOn.cs" />
<Compile Include="Migrations\ResumeMigrations\201605162312562_CompletedOn.Designer.cs">
<DependentUpon>201605162312562_CompletedOn.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\ResumeMigrations\Configuration.cs" />
<Compile Include="Models\AccountViewModels.cs" />
<Compile Include="Models\Client.cs" />
<Compile Include="Models\Expert.cs" />
<Compile Include="Models\IdentityModels.cs" />
<Compile Include="Models\ManageViewModels.cs" />
<Compile Include="Models\Resume.cs" />
<Compile Include="Models\User.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Startup.cs" />
<Compile Include="ViewModels\ResumeExpertViewModel.cs" />
<Compile Include="ViewModels\ResumeUserViewModel.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Content\bootstrap.css" />
@@ -286,6 +297,12 @@
<Content Include="Views\User\Details.cshtml" />
<Content Include="Views\User\Edit.cshtml" />
<Content Include="Views\User\Index.cshtml" />
<Content Include="Views\Shared\_AdminPartial.cshtml" />
<Content Include="Views\Resume\Create.cshtml" />
<Content Include="Views\Resume\Delete.cshtml" />
<Content Include="Views\Resume\Details.cshtml" />
<Content Include="Views\Resume\Edit.cshtml" />
<Content Include="Views\Resume\Index.cshtml" />
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />
@@ -303,8 +320,14 @@
<WCFMetadata Include="Service References\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Migrations\CollegeMigrations\201605041718534_InitialCreate.resx">
<DependentUpon>201605041718534_InitialCreate.cs</DependentUpon>
<EmbeddedResource Include="Migrations\IdentityMigrations\201605120057301_InitialCreate.resx">
<DependentUpon>201605120057301_InitialCreate.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\ResumeMigrations\201605101755087_InitialCreate.resx">
<DependentUpon>201605101755087_InitialCreate.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\ResumeMigrations\201605162312562_CompletedOn.resx">
<DependentUpon>201605162312562_CompletedOn.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<PropertyGroup>

This file was deleted.

This file was deleted.

@@ -0,0 +1,72 @@
@model RmR.Models.Resume

@{
ViewBag.Title = "Create";
}

<h2>Create</h2>


@using (Html.BeginForm())
{
@Html.AntiForgeryToken()

<div class="form-horizontal">
<h4>Resume</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group">
@Html.LabelFor(model => model.ResumeName, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.ResumeName, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ResumeName, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
@Html.LabelFor(model => model.CreatedOn, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.CreatedOn, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.CreatedOn, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
@Html.LabelFor(model => model.CompletedOn, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.CompletedOn, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.CompletedOn, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
@Html.LabelFor(model => model.Status, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EnumDropDownListFor(model => model.Status, htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.Status, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
@Html.LabelFor(model => model.Description, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Create" class="btn btn-default" />
</div>
</div>
</div>
}

<div>
@Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}
@@ -0,0 +1,64 @@
@model RmR.Models.Resume

@{
ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<div>
<h4>Resume</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.ResumeName)
</dt>

<dd>
@Html.DisplayFor(model => model.ResumeName)
</dd>

<dt>
@Html.DisplayNameFor(model => model.CreatedOn)
</dt>

<dd>
@Html.DisplayFor(model => model.CreatedOn)
</dd>

<dt>
@Html.DisplayNameFor(model => model.CompletedOn)
</dt>

<dd>
@Html.DisplayFor(model => model.CompletedOn)
</dd>

<dt>
@Html.DisplayNameFor(model => model.Status)
</dt>

<dd>
@Html.DisplayFor(model => model.Status)
</dd>

<dt>
@Html.DisplayNameFor(model => model.Description)
</dt>

<dd>
@Html.DisplayFor(model => model.Description)
</dd>

</dl>

@using (Html.BeginForm()) {
@Html.AntiForgeryToken()

<div class="form-actions no-color">
<input type="submit" value="Delete" class="btn btn-default" /> |
@Html.ActionLink("Back to List", "Index")
</div>
}
</div>
@@ -0,0 +1,58 @@
@model RmR.Models.Resume

@{
ViewBag.Title = "Details";
}

<h2>Details</h2>

<div>
<h4>Resume</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.ResumeName)
</dt>

<dd>
@Html.DisplayFor(model => model.ResumeName)
</dd>

<dt>
@Html.DisplayNameFor(model => model.CreatedOn)
</dt>

<dd>
@Html.DisplayFor(model => model.CreatedOn)
</dd>

<dt>
@Html.DisplayNameFor(model => model.CompletedOn)
</dt>

<dd>
@Html.DisplayFor(model => model.CompletedOn)
</dd>

<dt>
@Html.DisplayNameFor(model => model.Status)
</dt>

<dd>
@Html.DisplayFor(model => model.Status)
</dd>

<dt>
@Html.DisplayNameFor(model => model.Description)
</dt>

<dd>
@Html.DisplayFor(model => model.Description)
</dd>

</dl>
</div>
<p>
@Html.ActionLink("Edit", "Edit", new { id = Model.ResumeID }) |
@Html.ActionLink("Back to List", "Index")
</p>
@@ -0,0 +1,74 @@
@model RmR.Models.Resume

@{
ViewBag.Title = "Edit";
}

<h2>Edit</h2>


@using (Html.BeginForm())
{
@Html.AntiForgeryToken()

<div class="form-horizontal">
<h4>Resume</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.HiddenFor(model => model.ResumeID)

<div class="form-group">
@Html.LabelFor(model => model.ResumeName, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.ResumeName, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ResumeName, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
@Html.LabelFor(model => model.CreatedOn, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.CreatedOn, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.CreatedOn, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
@Html.LabelFor(model => model.CompletedOn, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.CompletedOn, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.CompletedOn, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
@Html.LabelFor(model => model.Status, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EnumDropDownListFor(model => model.Status, htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.Status, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
@Html.LabelFor(model => model.Description, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Save" class="btn btn-default" />
</div>
</div>
</div>
}

<div>
@Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}
@@ -0,0 +1,57 @@
@model IEnumerable<RmR.Models.Resume>

@{
ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
@Html.ActionLink("Create New", "Create")
</p>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.ResumeName)
</th>
<th>
@Html.DisplayNameFor(model => model.CreatedOn)
</th>
<th>
@Html.DisplayNameFor(model => model.CompletedOn)
</th>
<th>
@Html.DisplayNameFor(model => model.Status)
</th>
<th>
@Html.DisplayNameFor(model => model.Description)
</th>
<th></th>
</tr>

@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.ResumeName)
</td>
<td>
@Html.DisplayFor(modelItem => item.CreatedOn)
</td>
<td>
@Html.DisplayFor(modelItem => item.CompletedOn)
</td>
<td>
@Html.DisplayFor(modelItem => item.Status)
</td>
<td>
@Html.DisplayFor(modelItem => item.Description)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { id=item.ResumeID }) |
@Html.ActionLink("Details", "Details", new { id=item.ResumeID }) |
@Html.ActionLink("Delete", "Delete", new { id=item.ResumeID })
</td>
</tr>
}

</table>
@@ -0,0 +1,16 @@
@if (Request.IsAuthenticated)
{
if (User.IsInRole("admin"))
{
<li>@Html.ActionLink("Resumes", "Index", "Resume")</li>
<li>@Html.ActionLink("Users","Index","User")</li>
}
else if (User.IsInRole("client"))
{
<li>@Html.ActionLink("Your Resumes", "Index", "Client")</li>
}
else if (User.IsInRole("expert"))
{
<li>@Html.ActionLink("List of Resumes", "Index", "Expert")</li>
}
}
@@ -32,7 +32,7 @@
<img src="~/img/rmr.png" border="0" alt="Logo" style="position:static" />
</a>*@

<a href="@Url.Action("Index", "Home")"><img src="~/img/rmr.png" id="fpLogo"/></a>
@*<a href="@Url.Action("Index", "Home")"><img src="~/img/rmr.png" id="fpLogo"/></a>*@

@*<div class="thumbnail">
<img src="~/DeptPics/@(item.DepartmentID).png" alt="@item.Name" />
@@ -43,12 +43,13 @@

@Html.ActionLink("Rate my Resume", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
</div>

<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">

<li>@Html.ActionLink("Quick Tools", "Quicktools", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li style="border-right: double">@Html.ActionLink("Resumes", "Index", "Resume")</li>
@Html.Partial("_AdminPartial")
<li>@Html.Partial("_LoginPartial")</li>
</ul>
</div>