reateTaskInput input)
    {
        var task = ObjectMapper.Map&lt;Task&gt;(input);
        await _taskRepository.InsertAsync(task);
    }</strong>
}</pre>

<p>Create method automatically <strong>maps</strong> given input to a Task entity and inserting to the database using the repository. <strong>CreateTaskInput</strong> <a href="http://www.aspnetboilerplate.com/Pages/Documents/Data-Transfer-Objects" target="_blank">DTO</a> is like that:</p>

<pre lang="cs">
using System;
using System.ComponentModel.DataAn