Example #1
0
 public ComplaintModel InsertComplaint(ComplaintModel model)
 {
     //unitOfWork.StartTransaction();
     ComplaintRepository repo = new ComplaintRepository(unitOfWork);
     Complaint complaint = new Complaint();
     AutoMapper.Mapper.Map(model, complaint);
     repo.Insert(complaint);
     AutoMapper.Mapper.Map(complaint,model);
     //unitOfWork.Commit();
     return model;
 }