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...
Javascript, SQL, Jquery, asp.net, C# and more.....
Comments
Post a Comment