Skip to content

Commit 2671086

Browse files
committed
Movido agenda para um namespace especifico
1 parent 4b38f8c commit 2671086

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

TesteBackendEnContact.Api/Resources/Contact/ContactResource.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using TesteBackendEnContact.Api.Resources.Company;
2+
using TesteBackendEnContact.Api.Resources.ContactBook;
23

34
namespace TesteBackendEnContact.Api.Resources.Contact
45
{
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
using System.Collections.Generic;
22
using TesteBackendEnContact.Core.Models;
33

4-
namespace TesteBackendEnContact.Api.Resources
4+
namespace TesteBackendEnContact.Api.Resources.ContactBook
55
{
66
public class ContactBookResource
77
{
88
public int Id { get; set; }
99
public string Name { get; set; }
1010
public string Description { get; set; }
11-
public int CompanyId { get; set; }
11+
public int? CompanyId { get; set; }
1212
}
1313
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace TesteBackendEnContact.Api.Resources.ContactBook
2+
{
3+
public class SaveContactBookResource
4+
{
5+
public string Name { get; set; }
6+
public string Description { get; set; }
7+
public int? CompanyId { get; set; }
8+
9+
public SaveContactBookResource(){}
10+
public SaveContactBookResource (SaveContactBookResource saveContactBookResource)
11+
{
12+
Name = saveContactBookResource.Name;
13+
Description = saveContactBookResource.Description;
14+
CompanyId = saveContactBookResource.CompanyId;
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)