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
albert albert
NA
524
0
Moving row down with button
Jul 4 2014 2:44 PM
Hi everybody,
I have this:
[code]
public ActionResult MoveDown(int id)
{
var medicijn = medicijnService.GetById(id);
var medicijnTemp = medicijnService.GetAll().Where(i => i.Volgorde > medicijn.Volgorde).OrderByDescending(m => m.Volgorde).FirstOrDefault();
if (medicijnTemp != null)
{
var medicijnvolgordeTemp = medicijn.Volgorde;
medicijn.Volgorde = medicijnTemp.Volgorde;
medicijnTemp.Volgorde = medicijnvolgordeTemp;
medicijnService.Save(medicijn);
medicijnService.Save(medicijnTemp);
}
return Json(true);
}
[/cod]
For moving down record.
Thank you for helping
Reply
Answers (
0
)
webcam coding using asp.net
unable to generate dynamic code for Updatepanel in user ctrl