How to assign default value to a foreign key using fluent api?

I created two models using fluent api in my dbcontext(ToDo, Category) what I want to achieve is that whenever I create a new ToDo object, the default value for CategoryId is specified as an id for the ‘Default’ category that I successfully created previously, I still need that relationship to be non optional to be able to use cascade deletion, but so that if not specified in a request body, the value of categoryid always assigns to 1.

receive requests in web servce rest in c #?

I have a web service api rest project in C # (basic) in VS, I program a POST method that does nothing at the moment, it only validates if information arrives or that I think it does ha, what I want to know is: when I send a Json chain from a client program, to be able to debug the reception of the request sent from my web service.
I want to see how my request arrives.

Sync ADFS Claims without relogin

I’m using ComponentSpace for ADFS SSO and it works perfectly fine to Sync users on login, but is there a way to Sync user properties/roles in background, i.e. user shouldn’t have to relogin for Updated Claims to Sync with the Service Provider. Thanks for your help and suggestions. I see few stackoverflow Questions where they say it is not possible, but some of them are quite old. Thanks again.

Invalid postback or callback argument when navigating away from actively loading GridView

There are several posts on here with similar titles, but none that I have found actually exhibit the same behavior I’m seeing. I’m using buttons with MultiView as my navigation to give the appearance of tabs. The page loads, no problem. I can switch tabs, no problem. The issue I’m having occurs only when I press a different navigation button while a gridview is actively loading. If I wait for the gridview to fully load, I get no errors.