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
Denmark Puso
NA
232
50.3k
2 condition inside foreach?
Oct 21 2019 9:18 AM
is it possible that i have 2 condition inside of foreach ? see my code below.
public ActionResult Add(OrderFormModel model, int[] DynamicTextBox, string[] DynamicTextBox2)
{
foreach (int textBoxValue in DynamicTextBox && string textBoxValue2 in DynamicTextBox2)
{
var getMaxId = _orderService.GetAll().OrderByDescending(x => x.Id).FirstOrDefault();
var order = new Order
{
ClientId = model.ClientId,
StateId = model.StateId,
CityId = model.CityId,
TownId = model.TownId,
Postcode = model.Postcode,
Deposit = textBoxValue,
TrackingNumber = textBoxValue2,
Address = model.Address,
DatePosted = Convert.ToDateTime(model.DatePosted),
DeliveryDate = Convert.ToDateTime(model.DeliveryDate),
Quantity = 1,
Status =
"Lined-up"
,
DateDelivered = null,
Notes = model.Notes ??
""
,
};
}
Reply
Answers (
3
)
Looking for GOOD final year project
Regarding converting base64 string to pdf in Angular 8.