public int Insert(Domain.Models.Contract entity) { Contract entityToInsert = this.context.Contracts.Create(); this.mapper.Map(entity, entityToInsert); this.context.Contracts.Add(entityToInsert); this.context.SaveChanges(); return(entityToInsert.Id); }
public void Update(Domain.Models.Contract entity) { throw new NotImplementedException(); }