This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Template: Qloud - Cloud Computing, Apps & Server Responsive HTML5 Template | |
Author: iqonicthemes.in | |
Version: 1.0 | |
Design and Developed by: iqonicthemes.in | |
NOTE: This is main stylesheet of template, This file contains the styling for the actual Template. Please do not change anything here! write in a custom.css file if required! | |
*/ | |
/*================================================ | |
[ Table of contents ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class SelfLinkParser | |
{ | |
public static SelfLinkParserViewModel ParseSelfLink(this string id) | |
{ | |
var result = new SelfLinkParserViewModel(); | |
var resultParts = id.Split('/'); | |
result.Name = resultParts.LastOrDefault(); | |
result.Project = resultParts[Array.IndexOf(resultParts, "projects") + 1]; | |
result.Region = resultParts[Array.IndexOf(resultParts, "regions") + 1]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using Azure.ResourceManager.Network.Models; | |
public static class ResourceGroupIdParser | |
{ | |
public static AzureResourceIdParseViewModel ParseResourceId(this Resource resource) | |
{ | |
var result = new AzureResourceIdParseViewModel(); | |
var resultParts = resource.Id.Split('/'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IRepository<T> where T : class | |
{ | |
IQueryable<T> GetAll(); | |
IQueryable<T> GetBy(Expression<Func<T, bool>> predicate); | |
T Find(int id); | |
T FindBy(Expression<Func<T, bool>> predicate); | |
void Insert(T entity); | |
bool Update(T entity); |