Exemplo n.º 1
0
        public async Task <string> CreatePost(PersonTypeCreateGet PersonType)
        {
            string usp    = "usp_PersonTypeCreatePost @CodePrefix , @CodeSuffix , @CodeTypeId , @Name, @Description,  @MenuName, @MouseOver,@Color, @IconId, @UserId ";
            var    String = await _sqlDataAccess.LoadSingleRecord <string, dynamic>(usp, PersonType);

            return(String);
        }
Exemplo n.º 2
0
        public async Task <List <ErrorMessage> > CreatePostCheck(PersonTypeCreateGet PersonType)
        {
            string usp           = "usp_PersonTypeCreatePostCheck @CodePrefix , @CodeSuffix , @CodeTypeId , @Name, @Description,  @MenuName, @MouseOver,@Color, @IconId, @UserId ";
            var    ErrorMessages = await _sqlDataAccess.LoadData <ErrorMessage, dynamic>(usp, PersonType);

            return(ErrorMessages);
        }