public HitsDTO ToHitsDTO(Hits hits)
        {
            HitsDTO hitsDTO = new HitsDTO();

            hitsDTO.Id       = hits.Id;
            hitsDTO.IdClient = hits.IdClient;
            hitsDTO.Date     = hits.Date;
            hitsDTO.Type     = hits.Type;
            hitsDTO.IdType   = hits.IdType;

            return(hitsDTO);
        }
        public void AddHits(String IdClient, int IdCritere, DateTime date, String Type)
        {
            Hits hits = new Hits
            {
                IdClient = IdClient,
                IdType   = IdCritere,
                Date     = date,
                Type     = Type
            };

            instanceDC.GetTable <Hits>().InsertOnSubmit(hits);
            instanceDC.SubmitChanges();
        }
 private void detach_Hits(Hits entity)
 {
     this.SendPropertyChanging();
     entity.AspNetUsers = null;
 }
 private void attach_Hits(Hits entity)
 {
     this.SendPropertyChanging();
     entity.AspNetUsers = this;
 }
 partial void DeleteHits(Hits instance);
 partial void UpdateHits(Hits instance);
 partial void InsertHits(Hits instance);