how to post image from our application to linkedin post ? in c# Or in javascript - asp.net-mvc-4

I am working on an asp.net MVC project and need to post image from application to LinkedIn.

Related

Can we write the .net core WebAPI in the asp.net core razor web page itself?

I have the following projects in my solution all .net core 5.0.
myproject.domain
myproject.infrastructre
myproject.webAPI
myproject.UI.Razorweb page.
Instead of using SPA which calls the webAPI, I am using razor web page which will call the webAPI(.net 5.0). My question is can we merge the webAPI and the razorwebpage into one? Can we write webAPI in the razor web page itself?
Is that allowed?
I agree with the suggestion given by Jeremy.
You should have a web API and Razor project separate.
Besides, if you would like to make some tests then you could refer to the articles below.
Use Razor Pages, MVC, And Web API In A Single ASP.NET Core Application
Hosting ASP.NET Core Razor Pages and Web APIs in a Single Project
Razor pages and webapi in the same project

How to share cookie between IronPython and asp.net mvc in the same website?

I got a very old website code, and it use IronPython in asp.net mvc. I found that when I call an ajax reques through IronPython Controller after an ajax request through asp.net mvc Controller witch set some cookie, the request in IronPython Controller dose not take the cookie.
So, is there some ways to share cookie between IronPython and asp.net mvc?
Can someone help me ?

Login to Swagger UI page .NET Core

I am using .Net Core and Swashbuckle for Swagger UI. I need to show login window before I go to Swagger UI Page. Is there any solution for this problem? Thank you

Authentication using bearer token in MVC Web App using C#

I have developed an OWIN based Web api which generates bearer token. Now in MVC Web application iam using Restsharp to get bearer token. I want to use that bearer token like forms authentication so that i can use [Authorize] attribute on action result. Please guide me.
I build the same app for my mobile using HTML, Angularjs and Cordova. Everything is good so far. Now i want to achieve it using c# and MVC5 without using jquery or Angularjs.
A team of 6 people are woking on this application.

Trans2Pay integration in Asp.net mvc4 application

I am new in asp.net mvc4 and i have to integrate trans2pay in asp.net(C#) mvc4 application. I searched about this from google but i couldn't found any solution to integrate it. Please tell me about any blog, api or source code for this.
Thanks in advance