Dotnet Developers: Send Mail: WebConfig: < add key = " SMTPHost " value = " 127.0.0.1 " /> < add key = " SMTPPort " value = " 25 " /> Code Behind : ...
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