/// <summary>
        /// Insert invoiced task
        /// </summary>
        public void Insert(InvoicedTaskModel model)
        {
            var invoiceTask = InvoicedTaskMapper.ToDBInvoicedTask(model);

            this.Context.InvoicedTasks.Add(invoiceTask);
            this.Save();
        }
 public static InvoicedTasks ToDBInvoicedTask(InvoicedTaskModel model)
 {
     return(new InvoicedTasks()
     {
         InvoicedTaskId = model.InvoicedTaskId,
         InvoiceId = model.InvoiceId,
         UserId = model.UserId,
         UserInternalRate = model.UserInternalRate,
         UserExternalRate = model.UserExternalRate,
         ReportedHours = model.ReportedHours,
         TaskName = model.TaskName,
     });
 }