Upgraded projects to .NET 9.0 and added new projects `KBR.Cache`, `KBR.Shared`, and `KBR.Shared.Lite` to the solution. Introduced JWT authentication and OTP handling with new models, services, and configuration options. Updated database schema with new entities `Users` and `RefreshTokens`, and added migrations for schema changes. Implemented caching strategies using `AppDistributedCache` with support for in-memory, SQL Server, and Redis. Enhanced email handling with `MailHelpers` for domain replacement. Updated controllers, repositories, and configuration files to support new features.
390 lines
15 KiB
C#
390 lines
15 KiB
C#
using PortBlog.API.Entities;
|
||
|
||
namespace PortBlog.API.DbContexts.Seed
|
||
{
|
||
public static class InitialData
|
||
{
|
||
public static Candidate GetCandidateData()
|
||
{
|
||
return new Candidate()
|
||
{
|
||
CandidateId = 1,
|
||
FirstName = "Bangara Raju",
|
||
LastName = "Kottedi",
|
||
Phone = "+91 9441212187",
|
||
Email = "bangararaju.kottedi@gmail.com",
|
||
Dob = new DateTime(1992, 5, 6),
|
||
Gender = "Male",
|
||
Address = "Samalkot, Andhra Pradesh, India",
|
||
};
|
||
}
|
||
|
||
public static Resume GetResumeData()
|
||
{
|
||
return new Resume()
|
||
{
|
||
ResumeId = 1,
|
||
CandidateId = 1,
|
||
Title = "Full Stack Developer",
|
||
About = "I'm Full Stack Developer with 8+ years of hands-on experience in .NET development. Passionate and driven professional with expertise in .NET WebAPI, Angular, CI/CD, and a growing proficiency in Azure. I've successfully delivered robust applications, prioritizing efficiency and user experience." +
|
||
" While I'm currently in the early stages of exploring Azure, I'm eager to expand my skill set and leverage cloud technologies to enhance scalability and performance. Known for my proactive approach and dedication to continuous learning, I'm committed to staying abreast of the latest technologies and methodologies to drive innovation and deliver exceptional results.",
|
||
Order = 1
|
||
};
|
||
}
|
||
|
||
public static SocialLinks GetSocialLinksData()
|
||
{
|
||
return new SocialLinks()
|
||
{
|
||
Id = 1,
|
||
BlogUrl = "https://bangararaju.kottedi.in/blog",
|
||
Linkedin = "https://in.linkedin.com/in/bangara-raju-kottedi-299072109",
|
||
GitHub = "https://github.com/rajukottedi",
|
||
ResumeId = 1
|
||
};
|
||
}
|
||
|
||
public static List<Hobby> GetHobbyData()
|
||
{
|
||
return new List<Hobby>()
|
||
{
|
||
new Hobby()
|
||
{
|
||
HobbyId = 1,
|
||
Order = 1,
|
||
Name = "Web Development",
|
||
Description = "Crafting Professional-Quality Websites with Precision.",
|
||
Icon = "fa-square-terminal",
|
||
ResumeId = 1
|
||
},
|
||
new Hobby()
|
||
{
|
||
HobbyId = 2,
|
||
Order = 2,
|
||
Name = "Automation",
|
||
Description = "Streamlining and Simplifying Complex Tasks through Automation.",
|
||
Icon = "fa-robot",
|
||
ResumeId = 1
|
||
},
|
||
new Hobby()
|
||
{
|
||
HobbyId = 3,
|
||
Order = 3,
|
||
Name = "Blogging",
|
||
Description = "Sharing the knowledge and insights I’ve gathered along my journey.",
|
||
Icon = "fa-typewriter",
|
||
ResumeId = 1
|
||
},
|
||
new Hobby()
|
||
{
|
||
HobbyId = 4,
|
||
Order = 4,
|
||
Name = "Technology",
|
||
Description = "Exploring, embracing, and leveraging the latest advancements.",
|
||
Icon = "fa-lightbulb-gear",
|
||
ResumeId = 1
|
||
}
|
||
};
|
||
}
|
||
|
||
public static List<Academic> GetAcademicData()
|
||
{
|
||
return new List<Academic>
|
||
{
|
||
new Academic()
|
||
{
|
||
AcademicId = 1,
|
||
Institution = "Pragati Little Public School",
|
||
StartYear = 2006,
|
||
EndYear = 2007,
|
||
Degree = "High School",
|
||
ResumeId = 1
|
||
},
|
||
new Academic()
|
||
{
|
||
AcademicId = 2,
|
||
Institution = "Sri Chaitanya Junior College",
|
||
StartYear = 2007,
|
||
EndYear = 2009,
|
||
Degree = "Intermediate",
|
||
DegreeSpecialization = "MPC",
|
||
ResumeId = 1
|
||
},
|
||
new Academic()
|
||
{
|
||
AcademicId = 3,
|
||
Institution = "Kakinada Institute of Technology & Science",
|
||
StartYear = 2009,
|
||
EndYear = 2013,
|
||
Degree = "BTech",
|
||
DegreeSpecialization = "ECE",
|
||
ResumeId = 1
|
||
}
|
||
};
|
||
}
|
||
|
||
public static List<Skill> GetSkillData()
|
||
{
|
||
return new List<Skill>
|
||
{
|
||
new Skill()
|
||
{
|
||
SkillId = 1,
|
||
Name = "Web Development",
|
||
ProficiencyLevel = 80,
|
||
ResumeId = 1
|
||
},
|
||
new Skill()
|
||
{
|
||
SkillId = 2,
|
||
Name = "Web Development",
|
||
ProficiencyLevel = 80,
|
||
ResumeId = 1
|
||
},
|
||
new Skill()
|
||
{
|
||
SkillId = 3,
|
||
Name = "Web Development",
|
||
ProficiencyLevel = 80,
|
||
ResumeId = 1
|
||
},
|
||
new Skill()
|
||
{
|
||
SkillId = 4,
|
||
Name = "Web Development",
|
||
ProficiencyLevel = 80,
|
||
ResumeId = 1
|
||
},
|
||
new Skill()
|
||
{
|
||
SkillId= 5,
|
||
Name = "Web Development",
|
||
ProficiencyLevel = 80,
|
||
ResumeId = 1
|
||
}
|
||
};
|
||
}
|
||
|
||
public static List<Project> GetProjectData()
|
||
{
|
||
return new List<Project>
|
||
{
|
||
new Project()
|
||
{
|
||
ProjectId = 1,
|
||
Name = "Transfora (Business Process Management)",
|
||
Description = "Business Process Management",
|
||
Categories = ["Web Development"],
|
||
ImagePath = "bpm.jpg",
|
||
TechnologiesUsed = ".NET, Angular",
|
||
Responsibilities = "Developing, Testing, Support",
|
||
Roles = "Coding, Reviewing, Testing",
|
||
ResumeId = 1
|
||
},
|
||
new Project()
|
||
{
|
||
ProjectId = 2,
|
||
Name = "Human Captial Management",
|
||
Description = "Business Process Management",
|
||
Categories = ["Web Design"],
|
||
ImagePath = "hcm.jpg",
|
||
TechnologiesUsed = ".NET, Angular",
|
||
Responsibilities = "Developing, Testing, Support",
|
||
Roles = "Coding, Reviewing, Testing",
|
||
ResumeId = 1
|
||
},
|
||
new Project()
|
||
{
|
||
ProjectId = 3,
|
||
Name = "Transfora (Business Process Management)",
|
||
Description = "Business Process Management",
|
||
Categories = ["Web Development"],
|
||
ImagePath = "hms.png",
|
||
TechnologiesUsed = ".NET, Angular",
|
||
Responsibilities = "Hosting, Integrating, Monitoring",
|
||
Roles = "Integration, Monitor",
|
||
ResumeId = 1
|
||
}
|
||
};
|
||
}
|
||
|
||
public static Blog GetBlogData()
|
||
{
|
||
return new Blog()
|
||
{
|
||
BlogUrl = "https://bangararaju.kottedi.in/blog",
|
||
Name = "Engineer's Odyssey",
|
||
Description = "Your Hub for Tech, DIY, and Innovation"
|
||
};
|
||
}
|
||
|
||
public static List<Post> GetPostsData()
|
||
{
|
||
return new List<Post>
|
||
{
|
||
new Post()
|
||
{
|
||
PostId = 1,
|
||
Slug = "hello-world",
|
||
Title = "Hello World",
|
||
Description = "Hello World",
|
||
Categories = ["Welcome"],
|
||
PostUrl = "https://bangararaju.kottedi.in/blog/hello-world",
|
||
CreatedDate = DateTime.Now,
|
||
BlogUrl = "https://bangararaju.kottedi.in/blog"
|
||
},
|
||
new Post()
|
||
{
|
||
PostId = 2,
|
||
Slug = "hello-world",
|
||
Title = "Hello World",
|
||
Description = "Hello World",
|
||
Categories = ["Welcome"],
|
||
PostUrl = "https://bangararaju.kottedi.in/blog/hello-world",
|
||
CreatedDate = DateTime.Now,
|
||
BlogUrl = "https://bangararaju.kottedi.in/blog"
|
||
},
|
||
new Post()
|
||
{
|
||
PostId = 3,
|
||
Slug = "hello-world",
|
||
Title = "Hello World",
|
||
Description = "Hello World",
|
||
Categories = ["Welcome"],
|
||
PostUrl = "https://bangararaju.kottedi.in/blog/hello-world",
|
||
CreatedDate = DateTime.Now,
|
||
BlogUrl = "https://bangararaju.kottedi.in/blog",
|
||
}
|
||
};
|
||
}
|
||
|
||
public static List<Experience> GetExperiencesData()
|
||
{
|
||
return new List<Experience>
|
||
{
|
||
new Experience()
|
||
{
|
||
ExperienceId = 1,
|
||
Title = "Jr. Software Engineer",
|
||
Company = "Agility E Services",
|
||
Description = "",
|
||
Location = "Hyderabad",
|
||
StartDate = new DateTime(2015, 9, 2),
|
||
EndDate = new DateTime(2016, 4, 25),
|
||
ResumeId = 1
|
||
},
|
||
new Experience()
|
||
{
|
||
ExperienceId = 2,
|
||
Title = "Web Developer",
|
||
Company = "Agility",
|
||
Description = "",
|
||
Location = "Kuwait",
|
||
StartDate = new DateTime(2016, 5, 12),
|
||
EndDate = new DateTime(2022, 1, 31),
|
||
ResumeId = 1
|
||
},
|
||
new Experience()
|
||
{
|
||
ExperienceId = 3,
|
||
Title = "Senior Web Developer",
|
||
Company = "Agility",
|
||
Description = "",
|
||
Location = "Kuwait",
|
||
StartDate = new DateTime(2022, 2, 1),
|
||
EndDate = new DateTime(2022, 10, 31),
|
||
ResumeId = 1
|
||
},
|
||
new Experience()
|
||
{
|
||
ExperienceId = 4,
|
||
Title = "Technology Specialist",
|
||
Company = "Agility E Services",
|
||
Description = "",
|
||
Location = "Hyderabad",
|
||
StartDate = new DateTime(2022, 11, 4),
|
||
EndDate = new DateTime(2024, 4, 12),
|
||
ResumeId = 1
|
||
},
|
||
};
|
||
}
|
||
|
||
public static List<ExperienceDetails> GetExperienceDetailsData()
|
||
{
|
||
return new List<ExperienceDetails>
|
||
{
|
||
new ExperienceDetails()
|
||
{
|
||
Id = 1,
|
||
ExperienceId = 1,
|
||
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
|
||
Order = 1
|
||
},
|
||
new ExperienceDetails()
|
||
{
|
||
Id = 2,
|
||
ExperienceId = 1,
|
||
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
|
||
Order = 2
|
||
},
|
||
new ExperienceDetails()
|
||
{
|
||
Id = 3,
|
||
ExperienceId = 2,
|
||
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
|
||
Order = 1
|
||
},
|
||
new ExperienceDetails()
|
||
{
|
||
Id = 4,
|
||
ExperienceId = 2,
|
||
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
|
||
Order = 2
|
||
},
|
||
new ExperienceDetails()
|
||
{
|
||
Id = 5,
|
||
ExperienceId = 3,
|
||
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
|
||
Order = 1
|
||
},
|
||
new ExperienceDetails()
|
||
{
|
||
Id = 6,
|
||
ExperienceId = 3,
|
||
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
|
||
Order = 2
|
||
},
|
||
new ExperienceDetails()
|
||
{
|
||
Id = 7,
|
||
ExperienceId = 4,
|
||
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
|
||
Order = 1
|
||
},
|
||
new ExperienceDetails()
|
||
{
|
||
Id = 8,
|
||
ExperienceId = 4,
|
||
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
|
||
Order = 2
|
||
},
|
||
|
||
};
|
||
}
|
||
|
||
public static List<User> GetUsers()
|
||
{
|
||
return new List<User>
|
||
{
|
||
new User
|
||
{
|
||
UserId = 1,
|
||
Username = "rajukottedi",
|
||
Email = "bangararaju.kottedi@gmail.com",
|
||
}
|
||
};
|
||
}
|
||
}
|
||
}
|