I have a date field in the format UNIX timestamp , and I need to transform this field to a DateTime of C #. How to proceed?
Example input: 1514959643539
Output desired: DateTime with correct date / time in...
I am creating a Custom Attribute in a webapi for validation of a value and would like to know if it can capture this value from a GET request.
I wanted to do it this way:
[Validacao]
public Empresa consularEmpresa([FromUri]string codigo){}...
I notice that FromBody is coming null and I do not know why.
This is my payload on Postman
{
"ChannelCode" : "TS",
"Name" : "Teste",
"Celphone" : "(11)999999999",
"Endpoint" : "www.teste.com.br",
"TokenLogin" : "123456...
int varvalor;
int var01 = varvalor * 1;
Console.Write("Digite um número para ser multiplicado: ");
var01 = Convert.ToInt32 (Console.ReadLine());
Console.WriteLine();
I wanted to write in Console.WriteLine(); these lines of code that is...
How do I enter a welcome screen with a button to continue and open the system?
In the initial form it looks like this:
namespace App_Herois_da_Fe
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();...
I have the following problem when applying the SimpleInjector container in a simple application:
The configuration is invalid.
The type BookAppService is directly or indirectly depending on itself.
The cyclic graph contains the following typ...
vsql = @"INSERT INTO ALUNOS_ (UF, IDADE, TELEFONE, NOME_PAI, ENDERECO, EMAIL,
NOME, CIDADE, NOME_MAE)
values ('sp', 0,'','','','','','','');";
This SQL when executed in oracle does the insertion but in the...
Good evening, I'm working with Ajax to return a json that contains a data in Datetime format but I'm getting string /Date(1519339100637)/ . How can I convert to date and time format 23/02/2018 12:00:00:
Ajax function:
&...
I am creating a simple Poker game, in this game I defined that the cards would be structs . According to my business rules, each card has a value , a name and a suit .
The Valor property corresponds to the range of 2 to 14 (this...
I would like to know if it is possible and how to perform an INSERT in the database of 10 equal values and adding 1 more in a field ..
ex:
I have a patrimony system and I need to register 10 equal items.
when marking a checkbox and adding the...