diff --git a/500-DBDump/Admin/Store Procedure/GetDiscountCodes.sql b/150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.GetDiscountCodes.sql index 0ed7543..974b080 100644 --- a/500-DBDump/Admin/Store Procedure/GetDiscountCodes.sql +++ b/150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.GetDiscountCodes.sql @@ -1,3 +1,12 @@ +SET QUOTED_IDENTIFIER ON +GO +SET ANSI_NULLS ON +GO + +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetDiscountCodes]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) +drop procedure [dbo].[GetDiscountCodes] +GO + -- ==================================================== -- Author: Magic Software -- Create date: 23-Dec-2009 @@ -23,4 +32,11 @@ BEGIN AND EndDate <= (CASE WHEN LEN(@sEndDate) > 0 THEN @dtEndDate ELSE EndDate END) AND DiscountCode like (CASE WHEN LEN(@sDiscountCode) > 0 THEN '%' + @sDiscountCode + '%' ELSE DiscountCode END) ORDER BY Status -END \ No newline at end of file +END + +GO +SET QUOTED_IDENTIFIER OFF +GO +SET ANSI_NULLS ON +GO + diff --git a/500-DBDump/Admin/Store Procedure/GetSearchUserList.sql b/150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.GetSearchUserList.sql index 79882db..0a8fc0a 100644 --- a/500-DBDump/Admin/Store Procedure/GetSearchUserList.sql +++ b/150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.GetSearchUserList.sql @@ -1,4 +1,13 @@ +SET QUOTED_IDENTIFIER ON +GO +SET ANSI_NULLS ON +GO + +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetSearchUserList]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) +drop procedure [dbo].[GetSearchUserList] +GO + Create PROCEDURE [dbo].[GetSearchUserList]--'','','','',1,1,1 -- Add the parameters for the stored procedure here @sFirstName varchar(100) = '', @sLastName varchar(100) = '', @sEmailId varchar(100) = '', @@ -167,8 +176,13 @@ BEGIN -- Dropping the temporary table DROP TABLE #UserResult END - - + +GO +SET QUOTED_IDENTIFIER OFF +GO +SET ANSI_NULLS ON +GO + diff --git a/500-DBDump/Admin/Store Procedure/UpdateAiaUserPassword.sql b/150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.UpdateAiaUserPassword.sql index 9cfe2d1..54ecc51 100644 --- a/500-DBDump/Admin/Store Procedure/UpdateAiaUserPassword.sql +++ b/150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.UpdateAiaUserPassword.sql @@ -1,3 +1,11 @@ +SET QUOTED_IDENTIFIER ON +GO +SET ANSI_NULLS ON +GO + +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[UpdateAiaUserPassword]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) +drop procedure [dbo].[UpdateAiaUserPassword] +GO -- ============================================= -- Author: -- Create date: @@ -26,4 +34,10 @@ BEGIN ROLLBACK TRANSACTION END CATCH -END \ No newline at end of file +END + +GO +SET QUOTED_IDENTIFIER OFF +GO +SET ANSI_NULLS ON +GO diff --git a/500-DBDump/Admin/Store Procedure/usp_GetAccountTypeList.sql b/150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.usp_GetAccountTypeList.sql index 971984f..b394714 100644 --- a/500-DBDump/Admin/Store Procedure/usp_GetAccountTypeList.sql +++ b/150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.usp_GetAccountTypeList.sql @@ -1,3 +1,14 @@ +SET QUOTED_IDENTIFIER ON +GO +SET ANSI_NULLS ON +GO + +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetAccountTypeList]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) +drop procedure [dbo].[usp_GetAccountTypeList] +GO + + + -- ============================================= -- Author: magic -- Create date: 7/4/2009 @@ -27,8 +38,14 @@ BEGIN END +GO +SET QUOTED_IDENTIFIER OFF +GO +SET ANSI_NULLS ON +GO + - + \ No newline at end of file diff --git a/500-DBDump/Admin/Store Procedure/usp_GetUserType.sql b/150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.usp_GetUserType.sql index ee27b3b..50044ee 100644 --- a/500-DBDump/Admin/Store Procedure/usp_GetUserType.sql +++ b/150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.usp_GetUserType.sql @@ -1,3 +1,14 @@ + +SET QUOTED_IDENTIFIER ON +GO +SET ANSI_NULLS ON +GO + +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetUserType]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) +drop procedure [dbo].[usp_GetUserType] +GO + + -- ============================================= -- Author: magic -- Create date: 7/4/2009 @@ -25,8 +36,13 @@ BEGIN END - - + +GO +SET QUOTED_IDENTIFIER OFF +GO +SET ANSI_NULLS ON +GO + \ No newline at end of file diff --git a/500-DBDump/Admin/Store Procedure/usp_UpdateUserId.sql b/150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.usp_UpdateUserId.sql index fddc741..6a78fa3 100644 --- a/500-DBDump/Admin/Store Procedure/usp_UpdateUserId.sql +++ b/150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.usp_UpdateUserId.sql @@ -1,3 +1,14 @@ + +SET QUOTED_IDENTIFIER ON +GO +SET ANSI_NULLS ON +GO + +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_UpdateUserId]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) +drop procedure [dbo].[usp_UpdateUserId] +GO + + -- ============================================= -- Author: -- Create date: <3-Jan-2018> @@ -41,4 +52,12 @@ BEGIN ROLLBACK TRANSACTION END CATCH -END \ No newline at end of file +END + +GO +SET QUOTED_IDENTIFIER OFF +GO +SET ANSI_NULLS ON +GO + + diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserController.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserController.cs index 08a4113..787c1d6 100644 --- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserController.cs +++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserController.cs @@ -10,13 +10,13 @@ using AIAHTML5.ADMIN.API.Models; using System.Web.Http.Cors; using System.Web.Cors; using AIAHTML5.Server.Constants; -using log4net; +using log4net; using System.Text; using AIAHTML5.ADMIN.API.Entity; namespace AIAHTML5.ADMIN.API.Controllers { - + [EnableCors(origins: "http://localhost:4200", headers: "*", methods: "*")] [RoutePrefix("User")] public class UserController : ApiController {