26 lines
829 B
C#
26 lines
829 B
C#
|
|
using Models;
|
|||
|
|
using Models.ModelItems;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace Services.Manager
|
|||
|
|
{
|
|||
|
|
public class AuthoStatusServer
|
|||
|
|
{
|
|||
|
|
public static AuthoStatusType AddAuthoStatus(string Name,string desc)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
AuthoStatusType authoStatus = Cache.CacheHelp.cacheSysAuthoStatusType.FirstOrDefault(x => x.Name == Name);
|
|||
|
|
if (authoStatus != null)
|
|||
|
|
return null;
|
|||
|
|
authoStatus = new AuthoStatusType() {Name = Name ,Desc = desc };
|
|||
|
|
SqlSugarBase.Db.Insertable(authoStatus).ExecuteCommand();
|
|||
|
|
Cache.CacheHelp.Removesys(Cache.CacheHelp.syskey.sysAuthoStatusTypeListKey);
|
|||
|
|
return authoStatus;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|