public void InsertEntries(List <TimeEntryView> entries)
        {
            var count  = 0;
            var access = new TimeEntryAccess();

            foreach (var entry in entries)
            {
                access.AddUpdateEntry(entry, entry.userDetailId.ToString());
                count++;
            }
        }
 public IHttpActionResult SaveEntries([FromBody] List <TimeEntryView> entriesToSave)
 {
     if (User.Identity != null)
     {
         var access = new TimeEntryAccess();
         foreach (var entry in entriesToSave)
         {
             access.AddUpdateEntry(entry, User.Identity.GetUserId());
         }
         return(Ok());
     }
     else
     {
         return(Unauthorized());
     }
 }