* Fix Web api exception manager
* Added language support api * Added canRead canWrite to functions Access api
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Web.Helpers;
|
||||
using Step.Model.DatabaseModels;
|
||||
@@ -21,7 +22,7 @@ namespace Step.Database.Controllers
|
||||
dbCtx.Dispose();
|
||||
}
|
||||
|
||||
public void Create(string username, string password, string firstName, string lastName, int roleId)
|
||||
public void Create(string username, string password, string firstName, string lastName, int roleId, CultureInfo language)
|
||||
{
|
||||
// Create a new user model with params
|
||||
UserModel user = new UserModel()
|
||||
@@ -31,7 +32,8 @@ namespace Step.Database.Controllers
|
||||
FirstName = firstName,
|
||||
LastName = lastName,
|
||||
RoleId = roleId,
|
||||
SecurityStamp = Guid.NewGuid().ToString()
|
||||
SecurityStamp = Guid.NewGuid().ToString(),
|
||||
Language = language
|
||||
};
|
||||
// Add to database
|
||||
dbCtx.Users.Add(user);
|
||||
|
||||
Reference in New Issue
Block a user