Posts

Get Current Method Name in Catch Block

This Method use to get current controller or action method name in MVC> ActionContext.ActionDescriptor.ActionName

Send Push Notification to ANDROID Devices

SEND PUSH NOTIFICATION TO ANDROID DEVICES public static string APPSendNotification(string Title, string Text, string DeviceID, CSendNoti Data, int DeviceType = 1)     {         var result = "-1";         try         {             if (!string.IsNullOrEmpty(DeviceID))             {                 var webAddr = "https://fcm.googleapis.com/fcm/send";                 //VAISHALI GEMS                 //string SERVER_API_KEY = "SERVERAPIKEY";                 //string SENDER_ID = "SENDERID";                 string SERVER_API_KEY = "SERVERAPIKEY";                 string SENDER_ID = "SENDERID";     ...

Angular 4: Get Distinct Record From Array List Object Typescript

Angular 4: Get Distinct Record From Array List Object Typescript  this._HeadList =this._AllList.filter(             (obj, idx, arr) => (arr.findIndex((o) => o.Supplier_ID === obj.Supplier_ID) === idx)         );

Change row and font color of PrimeNG DataTable Angular 4

Image
Hello Friends Here are sample code of Changing Row and Font Color or PrimeNG datatabale Grid Angular 4

Amazon MWS - Retrieves Amazon product Data from Amazon databases

Retrieves Amazon product data from Amazon databases using C# Client Library.  All information is displayed in the console.  This demo project does not contain access keys to the Amazon seller account. Download Link Get information from Stack Overflow Link

Write Content in file in Amazon S3 Cloud asp.net c#

Use this code to write content in asp.net c# in Amazon S3 Cloud     public void WriteContentInFile()         {             try             {                 AWSCredentials credentials = new BasicAWSCredentials("Accesskey", "secretkey");                 AmazonS3Config config = new AmazonS3Config();                 config.ServiceURL = "s3.amazonaws.com";                 config.RegionEndpoint = Amazon.RegionEndpoint.GetBySystemName("ap-south-1");                 AmazonS3Client client;                 using (client = new AmazonS3Client(credentials, config))                 {         ...

Create New File In Amazon S3 Cloud in asp.net c#

Below code use to create or generate new file .txt in Amazon S3 Cloud in asp.net c#.          public void CreateFileInAmazon()         {             try             {                 AWSCredentials credentials = new BasicAWSCredentials("accesskey", "secretkey");                 AmazonS3Config config = new AmazonS3Config();                 config.ServiceURL = "s3.amazonaws.com";                 config.RegionEndpoint = Amazon.RegionEndpoint.GetBySystemName("ap-south-1");                 AmazonS3Client client;                 using (client = new AmazonS3Client(credentials, config))                 ...