TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kalisa Fravius
NA
12
502
Help How to Send Variables, read comments
Nov 30 2016 1:02 AM
public HttpResponseMessage Post(ws_verific_codes vcode)
{
Random rnd = new Random();
int msg = rnd.Next(1000, 10001);
string stat = 'sind';
try
{
//vcode is sent from another app
//i want to send msg and stat together with vcode
//How can i do that inside the code below
//In summary: I want to send "vcode, msg, stat"
Db.ws_verific_codes.Add(vcode);
//Instead of that above, how can I do as below:
Db.ws_verific_codes.Add(vcode, msg, stat);
Db.SaveChanges();
var response = Request.CreateResponse(HttpStatusCode.Created);
response.Headers.Location = new Uri(Request.RequestUri.ToString());
return response;
}
catch (Exception ex)
{
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex);
}
}
Reply
Answers (
1
)
Errors in the existing database in the project Xamarin !
Crystal Reports Dates Range