I`m new to client-server programming concepts. What I need, to send four js vars to my MVC 3 controller action.
$(document).ready(function() {
va
Here goes solution -
Model -
public class ImageCoordinates
{
public int x1 { get; set; }
public int x2 { get; set; }
public int y1 { get; set; }
public int y2 { get; set; }
}
Action -
public ActionResult CreateCover(ImageCoordinates coordinates)
{
return null;
}
Lets create a View which will make the AJAX call to the Action.
Output -
