Witam, to znowu ja i znowu o MVC. Czy taki model jest poprawny?
public class Person
{
public string name { get; set; }
public string surname { get; set; }
public Person(string name, string surname)
{
this.name=name;
this.surname=surname;
}
void Save(Client client)
{
//sql
}
void Delete(Client client)
{
//sql
}
object[] ClientsWithCars() //Czy tu tak można? ( czy tak wypada?? )
{
//sql
}
}
Głównie chodzi mi o metodę ClientsWithCars, która zwróci pola z kilku różnych tabel.