public object GetActive(Guid ID)
        {
            ResultOperation result = new EntityDefService().Active(ID);

            if (result.IsSuccess)
            {
                return(new PostMethodMessage(SharedLang.Get("Success.Text"), DisplayMessageType.success));
            }
            else
            {
                return(new PostMethodMessage(result.GetErrors(), DisplayMessageType.success));
            }
        }
 public object Delete(Guid ID)
 {
     if (ID != Guid.Empty)
     {
         ResultOperation result = new EntityDefService().Delete(ID);
         if (result.IsSuccess)
         {
             return(new PostMethodMessage(SharedLang.Get("Success.Text"), DisplayMessageType.success));
         }
         else
         {
             return(new PostMethodMessage(result.GetErrors(), DisplayMessageType.error));
         }
     }
     else
     {
         return(new PostMethodMessage(SharedLang.Get("NotFound.Text"), DisplayMessageType.error));
     }
 }