Posts

ExcelHelper

 #region Assembly DocumentFormat.OpenXml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 /*----------------------------------------------------------------- File Name       :  ExcelHelper.cs Created By      :   Created on      :   Revision History:   ------------------------------------------------------------------*/ #endregion using System; using System.Data; using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Spreadsheet; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace InsiderTrading.Infrastructure.ExcelHelper {     public sealed class ExcelHelper : IExcelHelperContract     {         #region     Variable   and   Objects          DataSet dataSet;         ExcelStatus status =...

Encrypt and returnJsonStringFromDataTableUtility

 using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Web; using System.Web.Script.Serialization; namespace RESTFulWCFService {     public static class Utility     {         public static string Encrypt(string toEncrypt, bool useHashing)         {             byte[] keyArray;             byte[] toEncryptArray = UTF8Encoding.UTF8.GetBytes(toEncrypt);             // Get the key from config file             string key = "CPPKey";             //System.Windows.Forms.MessageBox.Show(key);             //If hashing use get hashcode regards to your key             if (useHashing)             { ...

Transaction services

 using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using MIND.BusinessEntities; using MIND.BusinessServices.Interface; using MIND.Configuration; using MIND.DAL; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.IO; using System.Text; using System.Threading.Tasks; namespace MIND.BusinessServices.Services {     public class TransactionService : DataAccess, ITransactionService     {         public TransactionService(IConfiguration Configuration) : base(Configuration) { }         #region Employee Review Process         public async Task<EmployeeCompetencyTypeDetails> GetEmployeeCompetencyTypeDetails(Search Search)         {             Status Status = new Status();             EmployeeComp...