public Detail getMessageMandatoryElementDefById(int id)
        {
            DBHelper._MessageMandatoryElementDef dbhelp = new DBHelper._MessageMandatoryElementDef();
            MessageMandatoryElementDef           mMED   = dbhelp.GetByid(id);

            return(new Detail()
            {
                Id = mMED.Id,
                ElementName = mMED.ElementName,
                ElementDataType = mMED.ElementDataType,
                MandatoryFlag = mMED.MandatoryFlag,
                Description = mMED.Description
            });
        }
        public void deleteMessageMandatoryElementDef(int id)
        {
            DBHelper._MessageMandatoryElementDef dbhelp = new DBHelper._MessageMandatoryElementDef();
            MessageMandatoryElementDef           existingMessageMandatoryElementDef = dbhelp.GetByid(id);

            dbhelp.Delete(existingMessageMandatoryElementDef);
        }
        public void updateMessageMandatoryElementDef(int id, Update mMED)
        {
            DBHelper._MessageMandatoryElementDef dbhelp = new DBHelper._MessageMandatoryElementDef();
            MessageMandatoryElementDef           existingMessageMandatoryElementDef = dbhelp.GetByid(id);

            existingMessageMandatoryElementDef.ElementName     = mMED.ElementName;
            existingMessageMandatoryElementDef.ElementDataType = mMED.ElementDataType;
            existingMessageMandatoryElementDef.MandatoryFlag   = mMED.MandatoryFlag;
            existingMessageMandatoryElementDef.Description     = mMED.Description;

            dbhelp.Update(existingMessageMandatoryElementDef);
        }