public virtual bool Create(YZJ_StatusTypeModel model)
        {
            try
            {
                YZJ_StatusType entity = m_Rep.GetById(model.ID);
                if (entity != null)
                {
                    return(false);
                }
                entity      = new YZJ_StatusType();
                entity.ID   = model.ID;
                entity.Name = model.Name;


                if (m_Rep.Create(entity))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
        public virtual YZJ_StatusTypeModel GetById(string id)
        {
            if (IsExists(id))
            {
                YZJ_StatusType      entity = m_Rep.GetById(id);
                YZJ_StatusTypeModel model  = new YZJ_StatusTypeModel();
                model.ID   = entity.ID;
                model.Name = entity.Name;

                return(model);
            }
            else
            {
                return(null);
            }
        }