Beispiel #1
0
        public int Insert(Domain.Models.Source entity)
        {
            Source entityToInsert = this.context.Sources.Create();

            this.mapper.Map(entity, entityToInsert);
            this.context.Sources.Add(entityToInsert);
            this.context.SaveChanges();
            return(entityToInsert.Id);
        }
Beispiel #2
0
 public void Update(Domain.Models.Source entity)
 {
     throw new NotImplementedException();
 }