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."; }
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."; }
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."); } }