public async Task <bool> Transaction(AppointmentLogEdit data, char action) { try { var val = await _adapterPattern.SingleTransaction <AppointmentLogEdit, bool>(data, "usp_AppointmentLog_Transaction", action, DataConfiguration.instanceCore); return(val); } catch (Exception ex) { Logger.LogError(ex); return(false); } }
/// <summary> /// Transaction of Dictionary /// </summary> /// <param name="data">Object MailSetting</param> /// <param name="action">I: Insert, u: Update, D: Delete</param> /// <returns>true/false</returns> public async Task <int> Transaction(MailSetting data, char action) { try { var val = await _adapterPattern.SingleTransaction <MailSetting, int>(data, "usp_MailSetting_Transaction", action, DataConfiguration.instanceCore); return(val); } catch (Exception ex) { Logger.LogError(ex); return(0); } }
/// <summary> /// Transaction of ArticleComment /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns>true/false</returns> public async Task <int> Transaction(ArticleCommentEdit data, char action) { try { var val = await _adapterPattern.SingleTransaction <ArticleCommentEdit, int>(data, "usp_ArticleComment_Transaction", action, DataConfiguration.instanceCore); return(val); } catch (Exception ex) { Logger.LogError(ex); return(0); } }
/// <summary> /// Transaction /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns></returns> public async Task <bool> Transaction(Category data, char action) { return(await _adapterPattern.SingleTransaction <Category, bool>(data, "usp_Category_Transaction", action)); }
/// <summary> /// Transaction /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns></returns> public async Task <bool> Transaction(Workflow data, char action) { return(await _adapterPattern.SingleTransaction <Workflow, bool>(data, "usp_Workflow_Transaction", action)); }
/// <summary> /// Transaction /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns></returns> public async Task <bool> Transaction(LinkBuilding data, char action) { return(await _adapterPattern.SingleTransaction <LinkBuilding, bool>(data, "usp_LinkBuilding_Transaction", action)); }
/// <summary> /// Transaction /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns></returns> public async Task <bool> Transaction(CMSConfiguration data, char action) { return(await _adapterPattern.SingleTransaction <CMSConfiguration, bool>(data, "usp_Configuration_Transaction", action)); }
public async Task <bool> Transaction(SystemNotification data, char action) { var val = await _adapterPattern.SingleTransaction <SystemNotification, bool>(data, "usp_SystemNotification_Transaction", action, DataConfiguration.instanceCore); return(val); }
public async Task <Q> SingleTransaction <T, Q>(T obj, string proc, char action, byte instance, string ignoreParas, DataConfiguration.DapperQueryOption queryOption) { return(await _adapterPattern.SingleTransaction <T, Q>(obj, proc, action, instance, ignoreParas, queryOption)); }
/// <summary> /// Transaction of OfferAdvise /// </summary> /// <param name="data">Object OfferAdvise</param> /// <param name="action">I: Insert, U: Update, D: Delete</param> /// <returns>true/false</returns> public async Task <int> Transaction(OfferAdviseEdit data, char action) { return(await _adapterPattern.SingleTransaction <OfferAdviseEdit, int>(data, "usp_OfferAdvise_Transaction", action, DataConfiguration.instanceCore)); }
/// <summary> /// Transaction /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns></returns> public async Task <bool> Transaction(Language data, char action) { return(await _adapterPattern.SingleTransaction <Language, bool>(data, "usp_Language_Transaction", action)); }
public async Task <int> Transaction(EmailMarketing data, char action) { return(await _adapterPattern.SingleTransaction <EmailMarketing, int>(data, "usp_EmailMarketing_Transaction", action, DataConfiguration.instanceCore)); }
/// <summary> /// Transaction /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns></returns> public async Task<bool> Transaction(Slider data, char action) { return await _adapterPattern.SingleTransaction<Slider, bool>(data, "usp_Slider_Transaction", action); }
/// <summary> /// Transaction of Survey /// </summary> /// <param name="data">Object Survey</param> /// <param name="action">I: Insert, U: Update, D: Delete</param> /// <returns>true/false</returns> public async Task <int> Transaction(Survey data, char action) { return(await _adapterPattern.SingleTransaction <Survey, int>(data, "usp_Survey_Transaction", action, DataConfiguration.instanceCore)); }
/// <summary> /// Transaction /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns></returns> public async Task <int> Transaction(PostEdit data, char action) { return(await _adapterPattern.SingleTransaction <PostEdit, int>(data, "usp_Post_Transaction", action)); }
/// <summary> /// Transaction of Group /// </summary> /// <param name="data">Object Group</param> /// <param name="action">I: Insert, U:Update, D: Delete</param> /// <returns>true/false</returns> public async Task <int> Transaction(Group data, char action) { var val = await _adapterPattern.SingleTransaction <Group, int>(data, "usp_Group_Transaction", action, DataConfiguration.instanceCore); return(val); }
/// <summary> /// Transaction /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns></returns> public async Task <bool> Transaction(Advertise data, char action) { return(await _adapterPattern.SingleTransaction <Advertise, bool>(data, "usp_Advertise_Transaction", action)); }
/// <summary> /// Transaction /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns></returns> public async Task <bool> Transaction(Department data, char action) { return(await _adapterPattern.SingleTransaction <Department, bool>(data, "usp_Department_Transaction", action, DataConfiguration.instanceCore)); }
/// <summary> /// Transaction /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns></returns> public async Task <bool> Transaction(Setting data, char action) { return(await _adapterPattern.SingleTransaction <Setting, bool>(data, "usp_Setting_Transaction", action, DataConfiguration.instanceCore)); }
/// <summary> /// Transaction /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns></returns> public async Task <bool> Transaction(GalleryStore data, char action) { return(await _adapterPattern.SingleTransaction <GalleryStore, bool>(data, "usp_GalleryStore_Transaction", action)); }
/// <summary> /// Transaction /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns></returns> public async Task <bool> Transaction(DepartmentServices data, char action) { return(await _adapterPattern.SingleTransaction <DepartmentServices, bool>(data, "usp_DepartmentServices_Transaction", action, 2)); }
/// <summary> /// Transaction /// </summary> /// <param name="data"></param> /// <param name="action"></param> /// <returns></returns> public async Task <bool> Transaction(Feature data, char action) { return(await _adapterPattern.SingleTransaction <Feature, bool>(data, "usp_Feature_Transaction", action)); }