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); }
public ComplaintModel CreateComplaint(ComplaintModel complaint) { //_dbContext.Complaints.Add(complaint); //_dbContext.SaveChanges(); return(complaint); }