Hello Friends..........
public int Create(Users entity) { using (var context = new K305DataEntities()) { var newEntity = Mapper.Map<User>(entity); context.Users.Add(newEntity); context.SaveChanges(); return newEntity.Id; } } public int Update(Users entity) { using (var context = new K305DataEntities()) { var dbEntity = context.Users.FirstOrDefault(d...
Comments
Post a Comment