Example #1
0
 public static string Success(string entity, En_CRUD? CRUDType = null)
 {
     if (CRUDType == En_CRUD.Insert)
         return Success_Insert(entity);
     else if (CRUDType == En_CRUD.Update)
         return Success_Update(entity);
     else if (CRUDType == En_CRUD.Delete)
         return Success_Delete(entity);
     else
         return "Your Request has been successfully processed.";
 }
Example #2
0
 public static string Fail(string entity, En_CRUD CRUDType)
 {
     if (CRUDType == En_CRUD.Insert)
         return Fail_Insert(entity);
     else if (CRUDType == En_CRUD.Update)
         return Fail_Update(entity);
     else if (CRUDType == En_CRUD.Delete)
         return Fail_Delete(entity);
     else
         return "Your Request has been Successfully processed.";
 }
Example #3
0
 public static string Fail(string entity, En_CRUD CRUDType)
 {
     if (CRUDType == En_CRUD.Insert)
     {
         return(Fail_Insert(entity));
     }
     else if (CRUDType == En_CRUD.Update)
     {
         return(Fail_Update(entity));
     }
     else if (CRUDType == En_CRUD.Delete)
     {
         return(Fail_Delete(entity));
     }
     else
     {
         return("Your Request has been sucessfully processed.");
     }
 }