Commit 8d717a350e03213a8dd0851a1b5a69f0975618ea

Authored by Gagandeep
1 parent b7562317

Store Proc Added

500-DBDump/Admin/Store Procedure/GetDiscountCodes.sql renamed to 150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.GetDiscountCodes.sql
  1 +SET QUOTED_IDENTIFIER ON
  2 +GO
  3 +SET ANSI_NULLS ON
  4 +GO
  5 +
  6 +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetDiscountCodes]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
  7 +drop procedure [dbo].[GetDiscountCodes]
  8 +GO
  9 +
1 10 -- ====================================================
2 11 -- Author: Magic Software
3 12 -- Create date: 23-Dec-2009
... ... @@ -23,4 +32,11 @@ BEGIN
23 32 AND EndDate <= (CASE WHEN LEN(@sEndDate) > 0 THEN @dtEndDate ELSE EndDate END)
24 33 AND DiscountCode like (CASE WHEN LEN(@sDiscountCode) > 0 THEN '%' + @sDiscountCode + '%' ELSE DiscountCode END)
25 34 ORDER BY Status
26   -END
27 35 \ No newline at end of file
  36 +END
  37 +
  38 +GO
  39 +SET QUOTED_IDENTIFIER OFF
  40 +GO
  41 +SET ANSI_NULLS ON
  42 +GO
  43 +
... ...
500-DBDump/Admin/Store Procedure/GetSearchUserList.sql renamed to 150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.GetSearchUserList.sql
1 1  
  2 +SET QUOTED_IDENTIFIER ON
  3 +GO
  4 +SET ANSI_NULLS ON
  5 +GO
  6 +
  7 +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetSearchUserList]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
  8 +drop procedure [dbo].[GetSearchUserList]
  9 +GO
  10 +
2 11 Create PROCEDURE [dbo].[GetSearchUserList]--'','','','',1,1,1
3 12 -- Add the parameters for the stored procedure here
4 13 @sFirstName varchar(100) = '', @sLastName varchar(100) = '', @sEmailId varchar(100) = '',
... ... @@ -167,8 +176,13 @@ BEGIN
167 176 -- Dropping the temporary table
168 177 DROP TABLE #UserResult
169 178 END
170   -
171   -
  179 +
  180 +GO
  181 +SET QUOTED_IDENTIFIER OFF
  182 +GO
  183 +SET ANSI_NULLS ON
  184 +GO
  185 +
172 186  
173 187  
174 188  
... ...
500-DBDump/Admin/Store Procedure/UpdateAiaUserPassword.sql renamed to 150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.UpdateAiaUserPassword.sql
  1 +SET QUOTED_IDENTIFIER ON
  2 +GO
  3 +SET ANSI_NULLS ON
  4 +GO
  5 +
  6 +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[UpdateAiaUserPassword]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
  7 +drop procedure [dbo].[UpdateAiaUserPassword]
  8 +GO
1 9 -- =============================================
2 10 -- Author: <Author,,Name>
3 11 -- Create date: <Create Date,,>
... ... @@ -26,4 +34,10 @@ BEGIN
26 34 ROLLBACK TRANSACTION
27 35 END CATCH
28 36  
29   -END
30 37 \ No newline at end of file
  38 +END
  39 +
  40 +GO
  41 +SET QUOTED_IDENTIFIER OFF
  42 +GO
  43 +SET ANSI_NULLS ON
  44 +GO
... ...
500-DBDump/Admin/Store Procedure/usp_GetAccountTypeList.sql renamed to 150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.usp_GetAccountTypeList.sql
  1 +SET QUOTED_IDENTIFIER ON
  2 +GO
  3 +SET ANSI_NULLS ON
  4 +GO
  5 +
  6 +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetAccountTypeList]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
  7 +drop procedure [dbo].[usp_GetAccountTypeList]
  8 +GO
  9 +
  10 +
  11 +
1 12 -- =============================================
2 13 -- Author: magic
3 14 -- Create date: 7/4/2009
... ... @@ -27,8 +38,14 @@ BEGIN
27 38  
28 39 END
29 40  
  41 +GO
  42 +SET QUOTED_IDENTIFIER OFF
  43 +GO
  44 +SET ANSI_NULLS ON
  45 +GO
  46 +
30 47  
31   -
  48 +
32 49  
33 50  
34 51  
35 52 \ No newline at end of file
... ...
500-DBDump/Admin/Store Procedure/usp_GetUserType.sql renamed to 150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.usp_GetUserType.sql
  1 +
  2 +SET QUOTED_IDENTIFIER ON
  3 +GO
  4 +SET ANSI_NULLS ON
  5 +GO
  6 +
  7 +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_GetUserType]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
  8 +drop procedure [dbo].[usp_GetUserType]
  9 +GO
  10 +
  11 +
1 12 -- =============================================
2 13 -- Author: magic
3 14 -- Create date: 7/4/2009
... ... @@ -25,8 +36,13 @@ BEGIN
25 36  
26 37 END
27 38  
28   -
29   -
  39 +
  40 +GO
  41 +SET QUOTED_IDENTIFIER OFF
  42 +GO
  43 +SET ANSI_NULLS ON
  44 +GO
  45 +
30 46  
31 47  
32 48  
33 49 \ No newline at end of file
... ...
500-DBDump/Admin/Store Procedure/usp_UpdateUserId.sql renamed to 150-DOCUMENTATION/002-DBScripts/Admin/Store Procedure/dbo.usp_UpdateUserId.sql
  1 +
  2 +SET QUOTED_IDENTIFIER ON
  3 +GO
  4 +SET ANSI_NULLS ON
  5 +GO
  6 +
  7 +if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_UpdateUserId]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
  8 +drop procedure [dbo].[usp_UpdateUserId]
  9 +GO
  10 +
  11 +
1 12 -- =============================================
2 13 -- Author: <Author,,Name>
3 14 -- Create date: <3-Jan-2018>
... ... @@ -41,4 +52,12 @@ BEGIN
41 52 ROLLBACK TRANSACTION
42 53 END CATCH
43 54  
44   -END
45 55 \ No newline at end of file
  56 +END
  57 +
  58 +GO
  59 +SET QUOTED_IDENTIFIER OFF
  60 +GO
  61 +SET ANSI_NULLS ON
  62 +GO
  63 +
  64 +
... ...
400-SOURCECODE/AIAHTML5.ADMIN.API/Controllers/UserController.cs
... ... @@ -10,13 +10,13 @@ using AIAHTML5.ADMIN.API.Models;
10 10 using System.Web.Http.Cors;
11 11 using System.Web.Cors;
12 12 using AIAHTML5.Server.Constants;
13   -using log4net;
  13 +using log4net;
14 14 using System.Text;
15 15 using AIAHTML5.ADMIN.API.Entity;
16 16  
17 17 namespace AIAHTML5.ADMIN.API.Controllers
18 18 {
19   -
  19 + [EnableCors(origins: "http://localhost:4200", headers: "*", methods: "*")]
20 20 [RoutePrefix("User")]
21 21 public class UserController : ApiController
22 22 {
... ...