I am new to .net mvc ,and here is my situation, in mvc solution, I have data modal and reposity,also have ioc container, when comes to operate data operation,should I put all my logical code in the controller？or there are any better way?

```
public ActionResult SomeOperate(Person person)
{

    var reposity = _kernel.Get<IReposity<Person>>();   

    //what about if there are many database operation logical based on my generic reposity,should I put them all here?

    return RedirectToAction("SomeWhere");

}

```

**EDIT1**
my generic reposity have already support basic database operations such as add,update,remove,query transaction