I have two Models:
public class Solicitudes
{
public int SolicitudesID { get; set; }
public DateTime FechaEmision { get; set; }
public DateTime FechaInicio { get; set; }
public DateTime FechaFin { get; set; }
public string Observacion { get; set; }
public int UsuariosID { get; set; }
public int TipoSolicitudesID { get; set; }
public int CondicionesID { get; set; }
}
public class Condiciones
{
[Key]
public int CondicionesID { get; set; }
public string NombreCondiciones { get; set; }
public int EstadoCondiciones { get; set; }
}
If you can help me say how I do to appear in a view. the Class Requests as independent fields and Conditions within a radiobuttonfor by means of a foreach. At the end all the fields must be registered in a table. And how would you receive the controller?
//POST
[HttpPost]
public ActionResult Create(Solicitudes solicitud)
{
if (ModelState.IsValid)
{
}
return View(solicitud);
}
I'm learning asp.net mvc, please help.