title: data is not dispalying in postman in .net core
body: <p><strong>This Is Model named as Student</strong></p>
  
  <pre><code>using System;
  namespace peakR.Model.DBModels
  {
  public partial class Student: BaseEntity
  {
      //public long Id { get; set; }
      public string FirstName { get; set; }
      public string LastName { get; set; }
      public string Gender { get; set; }
      public DateTime? DateOfBirth { get; set; }
      public DateTime? DateOfRegistration { get; set; }
      public string PhoneNumber { get; set; }
      public string Email { get; set; }
      public string Address1 { get; set; }
      public string Address2 { get; set; }
      public string City { get; set; }
      public string State { get; set; }
      public string Zip { get; set; }
  }
  }
  </code></pre>
  
  <p><strong>This is student Mapping for entity framework because i am using code first approch</strong></p>
  
  <pre><code>using Microsoft.EntityFrameworkCore;
  using Microsoft.EntityFrameworkCore.Metadata.Builders;
  using peakR.Model.DBModels;
  
  namespace peakR.Model.Mapping
  {
  public class StudentMap
  {
      public StudentMap(EntityTypeBuilder&lt;Student&gt; entityBuilder)
      {
          entityBuilder.HasKey(t =&gt; t.Id);
  
          entityBuilder.Property(e =&gt; e.FirstName)
                  .HasMaxLength(30)
                  .IsUnicode(false);
  
          entityBuilder.Property(e =&gt; e.Address1)
                  .HasMaxLength(50)
                  .IsUnicode(false);
  
          entityBuilder.Property(e =&gt; e.Address2)
              .HasMaxLength(50)
              .IsUnicode(false);
  
          entityBuilder.Property(e =&gt; e.City)
              .HasMaxLength(30)
              .IsUnicode(false);
  
          entityBuilder.Property(e =&gt; 
  e.DateOfBirth).HasColumnType("datetime");
  
          entityBuilder.Property(e =&gt; 
  e.DateOfRegistration).HasColumnType("datetime");
  
          entityBuilder.Property(e =&gt; e.Email)
              .HasMaxLength(50)
              .IsUnicode(false);
  
          entityBuilder.Property(e =&gt; e.FirstName)
              .HasMaxLength(30)
              .IsUnicode(false);
  
          entityBuilder.Property(e =&gt; e.Gender)
              .HasMaxLength(10)
              .IsUnicode(false);
  
          entityBuilder.Property(e =&gt; e.LastName)
              .HasMaxLength(30)
              .IsUnicode(false);
  
          entityBuilder.Property(e =&gt; e.PhoneNumber)
              .HasMaxLength(20)
              .IsUnicode(false);
  
          entityBuilder.Property(e =&gt; e.State)
              .HasMaxLength(30)
              .IsUnicode(false);
  
          entityBuilder.Property(e =&gt; e.Zip).HasColumnType("nchar(10)");
  
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p><strong>this is base entity for id's</strong></p>
  
  <pre><code>public class BaseEntity
  {
      /// &lt;summary&gt;
      /// Gets or sets the entity identifier
      /// &lt;/summary&gt;
      public Guid Id { get; set; }
  </code></pre>
  
  <p><strong>This is repository for methods</strong></p>
  
  <pre><code>using Microsoft.EntityFrameworkCore;
  using peakR.Model;
  using System;
  using System.Collections.Generic;
  using System.Linq;
  
  namespace peakR.Data
  {
  /// &lt;summary&gt;
  /// Entity Framework Core repository
  /// &lt;/summary&gt;
  public class EfRepository&lt;T&gt; : IRepository&lt;T&gt; where T : BaseEntity
  {
  
      #region Fields
  
      private readonly peakRContext context;
      private DbSet&lt;T&gt; entities;
      string errorMessage = string.Empty;
  
      #endregion
  
      #region Ctor
  
      public EfRepository(peakRContext context)
      {
          this.context = context;
          entities = context.Set&lt;T&gt;();
      }
  
      #endregion
  
      #region Methods
  
      /// &lt;summary&gt;
      /// Gets a table
      /// &lt;/summary&gt;
      public IEnumerable&lt;T&gt; GetAll()
      {
          return entities.AsEnumerable();
      }
  
      /// &lt;summary&gt;
      /// Get entity by identifier
      /// &lt;/summary&gt;
      /// &lt;param name="id"&gt;Identifier&lt;/param&gt;
      /// &lt;returns&gt;Entity&lt;/returns&gt;
      public T Get(Guid id)
      {
          return entities.SingleOrDefault(s =&gt; s.Id == id);
      }
  
      /// &lt;summary&gt;
      /// Insert entity
      /// &lt;/summary&gt;
      /// &lt;param name="entity"&gt;Entity&lt;/param&gt;
      public void Insert(T entity)
      {
          if (entity == null)
          {
              throw new ArgumentNullException("entity");
          }
          entities.Add(entity);
          context.SaveChanges();
      }
  
      /// &lt;summary&gt;
      /// Update entity
      /// &lt;/summary&gt;
      /// &lt;param name="entity"&gt;Entity&lt;/param&gt;
      public void Update(T entity)
      {
          if (entity == null)
          {
              throw new ArgumentNullException("entity");
          }
          context.SaveChanges();
      }
  
      /// &lt;summary&gt;
      /// Delete entity
      /// &lt;/summary&gt;
      /// &lt;param name="entity"&gt;Entity&lt;/param&gt;
      public void Delete(T entity)
      {
          if (entity == null)
          {
              throw new ArgumentNullException("entity");
          }
          entities.Remove(entity);
          context.SaveChanges();
      }
  
      #endregion
  }
  }
  </code></pre>
  
  <p><strong>this is service for our model</strong></p>
  
  <pre><code>using peakR.Data;
  using peakR.Model.DBModels;
  using System;
  using System.Collections.Generic;
  
  namespace peakR.Services.Students
  {
  /// &lt;summary&gt;
  /// Student service
  /// &lt;/summary&gt;
  public class StudentService : IStudentService
  {
      #region Fields
  
      private readonly IRepository&lt;Student&gt; _studentRepository;
  
      #endregion
  
      #region Ctor
  
      public StudentService(IRepository&lt;Student&gt; studentRepository)
      {
          this._studentRepository = studentRepository;
      }
  
      #endregion
  
      #region Methods
  
      /// &lt;summary&gt;
      /// Gets all the students
      /// &lt;/summary&gt;
      /// &lt;returns&gt;List of Student&lt;/returns&gt;
      public virtual IEnumerable&lt;Student&gt; GetAllStudents()
      {
          return _studentRepository.GetAll();
      }
  
      /// &lt;summary&gt;
      /// Gets a Student
      /// &lt;/summary&gt;
      /// &lt;param name="studentId"&gt;Student identifier&lt;/param&gt;
      /// &lt;returns&gt;Student&lt;/returns&gt;
      public virtual Student GetStudentById(Guid studentId)
      {
          if (studentId.Equals(Guid.Empty))
              return null;
  
          return _studentRepository.Get(studentId);
      }
  
      /// &lt;summary&gt;
      /// Inserts student
      /// &lt;/summary&gt;
      /// &lt;param name="student"&gt;student&lt;/param&gt;
      public virtual void InsertStudent(Student student)
      {
          if (student == null)
              throw new ArgumentNullException(nameof(student));
  
          student.Id = new Guid();
          _studentRepository.Insert(student);
      }
  
      /// &lt;summary&gt;
      /// Updates the student
      /// &lt;/summary&gt;
      /// &lt;param name="student"&gt;student&lt;/param&gt;
      public virtual void UpdateStudent(Student student)
      {
          if (student == null)
              throw new ArgumentNullException(nameof(student));
  
          _studentRepository.Update(student);
      }
  
      /// &lt;summary&gt;
      /// Delete the student
      /// &lt;/summary&gt;
      /// &lt;param name="student"&gt;student&lt;/param&gt;
      public virtual void DeleteStudent(Student student)
      {
          if (student == null)
              throw new ArgumentNullException(nameof(student));
  
          _studentRepository.Delete(student);
      }
  
      #endregion
  }
  }
  </code></pre>
  
  <p><strong>I have created controller named as value Controller</strong></p>
  
  <pre><code>using log4net;
  using Microsoft.AspNetCore.Mvc;
  using peakR.Services.Students;
  using peakR.Web.Infrastructure.Mapper;
  using peakR.Web.ViewModels;
  using System;
  
   namespace peakR.Web.Controllers
  {
  [Route("api/Values")]
  public class ValuesController : Controller
  {
      public static log4net.ILog log { get; set; }
      ILog logger = log4net.LogManager.GetLogger(typeof(ValuesController));
  
      private IStudentService _studentService;
  
      public ValuesController(IStudentService studentService)
      {
          this._studentService = studentService;
      }
  
      // GET api/values
      [HttpGet]
      public IActionResult Get()
      {
         logger.Info(", Value, GetAll Is Invoked");
          //logger.Debug("DebugGetall is involked");
          //logger.Error("error");
          return Json(_studentService.GetAllStudents());
      }
  
      // GET api/values/5
      [HttpGet("{id}")]
      public IActionResult Get(Guid id)
      {
          logger.Debug("value,GetById Is Invoked");
          var student = _studentService.GetStudentById(id);
          if (student == null)
          {
              return Json("");
          }
          return Json(_studentService.GetStudentById(id));
      }
  
      // POST api/values
      [HttpPost]
      public void Post([FromBody]StudentModel student)
      {
          logger.Info("value,Post Is Invoked");
          if (student != null)
              _studentService.InsertStudent(student.ToEntity());
      }
  
      // PUT api/values/5
      [HttpPut("{id}")]
      public void Put(Guid id, [FromBody]StudentModel student)
      {
          logger.Info(",value,Put Is Invoked");
          if (id == student.Id)
          {
              var dbStudent = _studentService.GetStudentById(student.Id);
              if (dbStudent!=null)
              {
                  dbStudent = student.ToEntity(dbStudent);
                  _studentService.UpdateStudent(dbStudent);
              }
          }
      }
  
      // DELETE api/values/5
      [HttpDelete("{id}")]
      public void Delete(Guid id)
      {
          logger.Info("value,Delete Is Invoked");
          var dbStudent = _studentService.GetStudentById(id);
          if (dbStudent != null)
          {
              _studentService.DeleteStudent(dbStudent);
          }
      }
  }
  }
  </code></pre>
  
  <p>when I am fetching data from postman or direct calling api only "[" is coming.
  nothing is displaying<br>
  Data is not coming please help me.
  anything if you want please let me know</p>