This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page "/CreateEmployee" | |
@using GraphQLSampleAppUI.DataAccess; | |
@using GraphQLSampleAppUI.DataAccess.Model; | |
@inject NavigationManager NavigationManager | |
<h1>Create An Employee</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page "/ViewEmployee/{Id:int}" | |
@using GraphQLSampleAppUI.DataAccess; | |
@using GraphQLSampleAppUI.DataAccess.Model; | |
@inject NavigationManager NavigationManager | |
@if (employee.Name == null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page "/EmployeeView" | |
@using GraphQLSampleAppUI.DataAccess; | |
@using GraphQLSampleAppUI.DataAccess.Model; | |
@inject NavigationManager NavigationManager | |
<h1>All Employee</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace GraphQLSampleAppUI.DataAccess.Model | |
{ | |
public class CreateEmployeeReturnModel | |
{ | |
public int DepartmentId { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ComponentModel.DataAnnotations; | |
namespace GraphQLSampleAppUI.DataAccess.Model | |
{ | |
public class CreateEmployeeModel | |
{ | |
[Required(ErrorMessage = "Name is required")] | |
public string Name { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
namespace GraphQLSampleAppUI.DataAccess.Model | |
{ | |
public class Department | |
{ | |
public int DepartmentId { get; set; } | |
public string Name { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace GraphQLSampleAppUI.DataAccess.Model | |
{ | |
public class Employee | |
{ | |
public int EmployeeId { get; set; } | |
public string Name { get; set; } | |
public string Email { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GraphQL; | |
using GraphQL.Client.Http; | |
using GraphQL.Client.Serializer.Newtonsoft; | |
using ModernHttpClient; | |
using Newtonsoft.Json; | |
using System; | |
using System.Threading.Tasks; | |
namespace GraphQLSampleAppUI.DataAccess | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GraphQL; | |
using GraphQL.Client.Http; | |
using ModernHttpClient; | |
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using GraphQL.Client.Serializer.Newtonsoft; | |
using Newtonsoft.Json; | |
NewerOlder