public ParentModel CreateParent(ParentModel model)
 {
     try
     {
         model.ParentId = Guid.NewGuid();
         model.StatusId = 1;
         _repo.Parent.Create(model.ToEntity());
         _repo.Save();
         return(model);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }