public static User Create(string email, string name, string password, string role) => new User() { Id = Guid.NewGuid(), Email = email, Name = name, Password = Md5Service.GetMd5Hash(password), Role = role };
public JsonResult Md5(string text, bool half) { return(Json(Md5Service.Md5(text, half))); }