コード例 #1
0
        public ComplaintModel GetComplaint(long Id)
        {
            //var complaint = _dbContext.Complaints.Find(Id);
            var complaint = new ComplaintModel {
                ID = Id, Complaint = "I am having trouble logging into the system", ComplaintDate = new DateTime(2020, 05, 09), Status = CompaintStatus.Open.ToString()
            };

            return(complaint);
        }
コード例 #2
0
 public ComplaintModel CreateComplaint(ComplaintModel complaint)
 {
     //_dbContext.Complaints.Add(complaint);
     //_dbContext.SaveChanges();
     return(complaint);
 }